Using the following code to calculate the impulse response:
a=[1 1 -274/800 -304/8000 7669/8000 ... 11652/16000 -1420/32000 -6636/32000 ... -2646/64000];b=[zeros(1,100) 1 -1 21/16 -1 5/16];m=idarx(reshape(a,[1 1 9]),reshape(b,[1 1 105]));u=idinput(1e5,'rgs');e=randn(1e5,1);y=sim(m,[u e]);d=iddata(y,u);
I receive the following error:
??? Index exceeds matrix dimensions. Error in ==> C:\MATLAB6p5\toolbox\ident\ident\@idmodel\impulse.m On line 104 ==> varargin = varargin(1:kpf-1,kpf+2:end); Error in ==> C:\MATLAB6p5\toolbox\ident\ident\@iddata\impulse.m On line 161 ==> impulse(model,varargin{2:end});
Best Answer