You are on page 1of 1

clc

t = 0:0.01:8;
k = 0;
for K = 3:0.2:5;
for a = 0.1:0.1:3;
num = [K 2*K*a K*a^2];
den = [1 (1+K) (1+2*a*K) K*a^2];
y= step(num,den,t);
s = 801;while y(s)>0.98 & y(s)<1.02; s = s 1;end;
ts = (s1)*0.01;
m = max(y);
if m<1.2 & m>1.10; if ts<3.00;
k = k+1;
solution(k,:) = [K a m];
end
end
end
end
solution

You might also like