Code covered by the BSD License  

Highlights from
Response of a 2nd order system

image thumbnail

Response of a 2nd order system

by

 

a program to get the response of a 2nd order system for beginners .....

unit_second.m
%transfar function & response of a 2nd order system
% zeta is tha damping factor
%wn is natural frequency
zeta=input('enter zeta ');
wn=input('enter wn in rad/sec ');
num=[wn^2];
den=[1 2*zeta*wn wn^2];
G=tf(num,den) %% get transfar function
ltiview(G)%% various plots to show response

Contact us