MATLAB Program-To determine stability of given system using Isocline method:

 

Program:

x1=10:1:10;
x=1:5
x1=[-6,-4,-2,-1.8,-1.2,-1.0,0.2,0.6,1.2,1.4,1.6,2,2.2,3];
for p=1:1:14
    a=x1(p);
    hold on
    x2=((-5*x1+3)/(a+2));
    x2=(-1/a+1)*x1;
    plot(x1,x2,'m')
end
axis([-2 8 -5 10])
grid;
tspan=[0 20]
z0=[0,10];
[t,z]=ode23('ID',tspan,z0);
x=z(:,1);
y=z(:,2);
plot(x,y)
title('To plot phase trajectory')
xlabel('Time')

 

Output:

 

 isocline

Click here to download all MATLAB program.. SEM 7 Advance control system Instrumentation