diff --git a/matlab/pruned_state_space_system.m b/matlab/pruned_state_space_system.m index 9c9005b409f5c27e2a566eb69c1e304dcb922745..bb408bf3f4808d1b83de9d85b4da8a6f1c292fb5 100644 --- a/matlab/pruned_state_space_system.m +++ b/matlab/pruned_state_space_system.m @@ -370,6 +370,9 @@ lyapunov_symm_method = 1; %method=1 to initialize persistent variables %find stationary vars stationary_vars = (1:y_nbr)'; if ~isempty(Schur_u) + if order>1 + error('pruned_state_space_system: the pruned state space currently does not support unit roots at higher order.') + end %base this only on first order, because if first-order is stable so are the higher-order pruned systems x = abs(gx*Schur_u); stationary_vars = find(all(x < options.schur_vec_tol,2));