Q) Write a computer program to test the stability of any continuous-time LTI system.( using Matlab)
Test your program on the impulse response. h(t)= e^(-2t) u(t)
Attached the program (Matlab) file and a screen shot of the results.
matlab code and result)
clear all;clc;
%for 1 method
sys=tf([1],[1 2]);
disp('By 1 method');
a=isstable(sys);
if(a)
disp('System is stable');
else
disp('System is not stable');
end
%for 2 method
t=[0:0.01:500];
h=exp(-2.*t);
b=sum(h);
disp('By 2 method');
if (b<inf)
disp('System is stable');
else
disp('System is not stable');
end
result)
Get Answers For Free
Most questions answered within 1 hours.