MATLAB Program-To study frequency response of second order system using MATLAB

 

Program:

%study frequency response of second order system clc clf close all x=1 num=[1]; den=[1 2 1]; c=tf(num,den); %Specify transfer functions

w=0:0.1:10; H=freqresp(c,w); for i=1:1:101 p(i)=abs(H(:,:,i)) end plot(w,p) grid; title('frequency response of sencond order system') xlabel('w') ylabel('Amplitude')

 

Output:

 

freq response second order system

Click on image to enlarge:

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