MATLAB Program-Program to stability of system by using lyapnov function MATLAB:

 

Program:

%check stability by using lapnov's equation
n=input('enter the order of system matrix ')
a=input('Enter the elements of matrix a ')
q=[1 0;0 1]
p=lyap(a',q)
g=det(p)
if g>0
    disp('System is stable')
else
    disp('System is unstable')
end

Output:

 

lyapnov

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