no..
i have long script for this..
but error still occur..
can you help check the error for me..
this is the whole script:
num=[ 1 ];
den=[1 3.236068 5.236068 5.236068 3.236068 1];
[z,p,k]=tf2zp (num,den);
for i=1: max (size(z)),
if real (z(i))>0,
z(i)=-2;
end...
Homework Statement
for i=1: max (size(z)),
if real (z(i))>0,
z(i)=-2;
end
end
for i=2: max (size(p)),
if real (p(i))>0,
p(i)=-2;
end
end
Homework Equations
why there is always error..
it said that ? Attempted to access z(1); index out of...