diff --git a/matlab/+pac/+update/parameters.m b/matlab/+pac/+update/parameters.m index 655ab97e4a378ab0d0cbdf88f94f3d84525e10e3..05f8cf1e915d3a03594b36d9a4011c3f9bf8c103 100644 --- a/matlab/+pac/+update/parameters.m +++ b/matlab/+pac/+update/parameters.m @@ -79,7 +79,7 @@ else end % Makes no sense to have a composite PAC target with a trend component auxiliary model (where all the variables are non stationnary) -if numberofcomponents>0 && strcmp(M_.pac.pacman.auxiliary_model_type, 'trend_component') +if numberofcomponents>0 && strcmp(pacmodel.auxiliary_model_type, 'trend_component') error('Composite PAC target not allowed with trend component model.') end