Code covered by the BSD License  

Highlights from
Transfer Function

image thumbnail

Transfer Function

by

 

Represent a given set of values into a transfer function form.

Transfer_func.m
%Program to find poles & zeros from system transfer function (R.No.233/08)
n1=input('Enter cofficients of numerator');
n2=input('Enter cofficients of denominator');
z=tf(n1,n2)
[n1,n2]=eqtflength(n1,n2)
[z,p,k]=tf2zp(n1,n2)
zplane(a,b)
if (abs(p)<1)
   		    disp('system is stable')
elseif (abs(p)==1)
    disp('system is marginal stable')
else 
    disp('system is unstable')
end

Contact us