If I use MATLAB to plot the impulse response of a transfer f
If I use MATLAB to plot the impulse response of a transfer function for a specified simulation time and step, how do I code to look at all data points and display BIBO stable if all points are within +0.01 or -0.01 of 0 otherwise display not BIBO stable?
Solution
Ans) Let\'s take the you have got the impulse response in a vector \'h\',the following code does what you intend to
------------------
for i=1:length(h) %loop through all the points in \'h\' (impulse response)
if h(i)<0.01&&h(i)>-0.01 %condition for stable
disp(\'BIBO stable\')
else
disp(\'Not BIBO stable\')
end
end
---------------------
Comments are provided to help with the code where necessary
