>>numg1 = 1; deng1 = [1 1]; numg2 = 1; deng2 = [1 2]; >> G1 Transfer function: 1 ----- s + 1 >>G2 = tf(numg2,deng2); >> G2 Transfer function: 1 ----- s + 2 Vector Method, Factored form We can create transfer function of if numerator and denominator are given in factored dorm. We do this row vector containing the roots of numerator and denominator. Thus G(s) = G=zpk(num,den,k) MATLAB CODE >>den=[-2 -4]; >>num=[-7 -8 -9]; >> k=20; >> G_1=zpk(den,num,k) Zero/pole/gain: 20 (s+2) (s+4) ----------------- (s+7) (s+8) (s+9) Rational Expression in s method, Polynomial form This method allows us to type transfer function as we normally write it. The statement precede the transfer function if we wish to create and LTI transfer function in s=tf(‘s’)must polynomial form equivalent to using G=tf(num , den) Let, >> s=tf('s'); >> h=(s+1)/(s^2+7*s+12) Transfer function: s + 1
>>numg1 = 1; deng1 = [1 1]; numg2 = 1; deng2 = [1 2]; >> G1 Transfer function: 1 ----- s + 1 >>G2 = tf(numg2,deng2); >> G2 Transfer function: 1 ----- s + 2 Vector Method, Factored form We can create transfer function of if numerator and denominator are given in factored dorm. We do this row vector containing the roots of numerator and denominator. Thus G(s) = G=zpk(num,den,k) MATLAB CODE >>den=[-2 -4]; >>num=[-7 -8 -9]; >> k=20; >> G_1=zpk(den,num,k) Zero/pole/gain: 20 (s+2) (s+4) ----------------- (s+7) (s+8) (s+9) Rational Expression in s method, Polynomial form This method allows us to type transfer function as we normally write it. The statement s=tf(‘s’)must precede the transfer function if we wish to create and LTI transfer function in polynomial form equivalent to using G=tf(num , den) Let, >> s=tf('s'); >> h=(s+1)/(s^2+7*s+12) Transfer function: s + 1
control_system__5th_electrical_manual.docx