I am working with greybox modeling. I encountered an error. 'Error using iddata/greyest (line 40)' 'Index exceeds matrix dimensions' I wonder I can I fix it.
Whenever I used multiple experiments for estimation with the option 'InitialState' = 'estimate'. But If I indicate 'InitialState' = 'zero' then everything is fine.
opt = greyestOptions('Display','on','InitialState','zero','DisturbanceModel','none','SearchMethod','fmincon');data=MdlPrp_CLC.allIddt(:,1,1,1:23);mdl2 = greyest(data, init_sys2,opt);>> 'Error using iddata/greyest (line 40)' 'Index exceeds matrix dimensions' opt = greyestOptions('Display','on','InitialState','zero','DisturbanceModel','none','SearchMethod','fmincon');data=MdlPrp_CLC.allIddt(:,1,1,1:23);mdl2 = greyest(data, init_sys2,opt);
Best Answer