Anda di halaman 1dari 4

CONTROL SYSTEM ASSIGNMENT Submitted By: RABBIA KHAN 2010-EE-13 Submitted to: SIR ADIL BASHIR Department of Electrical

Engineering BZU Multan

% Experiment 2.1 Lab % No.1 Use MATLAB to Find P3,P4,P5 P1=[1 7 2 9 10 12 15]; P2=[1 9 8 9 12 15 20]; P3=P1+P2 P4=P1-P2 P5=P1.*P2 % No.2 Find P6 P6=poly([-7 -8 -3 -5 -9 -10]) % No.3 Find G1 num=20*poly([-2 -3 -6 -8]); den=poly([0 -7 -9 -10 -15]); G1=tf(num,den) % polynomial divided by polynomial % No.4 Find G2 Factors divided by Factors num=roots([1 17 99 223 140]) den=roots([1 32 363 2092 5052 4320]) G2=zpk([-7 -5 -4 -1],[-16.7851 -5.5591+5.1669i -5.5591-5.1669i -2.0483+0.5221i -2.0483-0.5221i],1) % No.5 Use various combinations of G1 and G2 find G3,G4,G5. G3A=G1+G2 %G1 in polynomial form G2 in factor form G4A=G1-G2 %G1 in polynomial form G2 in factor form G5A=G1*G2 %G1 in polynomial form G2 in factor form % G1 in factor form as R R=zpk([-2 -3 -6 -8],[0 -7 -9 -10 -15],20) G3B=R+G2 %Both G1 and G2 in factor form G4B=R-G2 %Both G1 and G2 in factor form

G5B=R*G2 %Both G1 and G2 in factor form % G2 in polynomial as M num=[0 1 17 99 223 140];den=[1 32 363 2092 5052 4320]; M=tf(num,den) G3C=G1+M %Both G1 and G2 in polynomial form G4C=G1-M %Both G1 and G2 in polynomial form G5C=G1*M %Both G1 and G2 in polynomial form % No.6 Partial Fraction Expansion % Part a G6 num=5*[1 2]; roots([1 8 15]) den=[0 -5 -3] [r,p,k]=residue(num,den) % G6 % Part b G7 roots([1 6 9]) den=[0 -3.0000 + 0.0000i -3.0000 - 0.0000i] [r,p,k]=residue(num,den) % G7 % Part c G8 roots([1 6 34]) den=[0 -3.0000 + 5.0000i -3.0000 - 5.0000i] [r,p,k]=residue(num,den) % G8 % EXPERIMENT 2.2 Lab % Question No.1 % Part (a) Generate Symbolically time function ft syms t

ft=0.0075-0.00034*exp(-2.5*t)*cos(22*t)+0.087*exp(-2.5*t)*sin(22*t)-0.0072*exp(-8*t) % symbolically % Part (b) Generate symbolically fs both factor and polynomial form syms s fs1=(2*(s+3)*(s+5)*(s+7))/(s*(s+8)*(s^2+10*s+100)) %symbolic representation of factor form of Fs1 fs2=expand(fs1) % Part (c) Laplace transform of ft T=laplace(ft) % Part (d) Inverse Laplace transform of Fs X=ilaplace(fs1) %inverse Laplace of factor form of Fs Y=ilaplace(fs2) %inverse Laplace of polynomial form of Fs % Part (e) LTI transfer function syms s F=(2*((s+3)*(s+5)*(s+7)))/(s*(s+8)*(s^2+10*s+100))%F(s) symbolically [nums,dens]=numden(F) % numerator and denominator in symbolic form num=sym2poly(nums); %symbolic to polynomial conversion of numerator den=sym2poly(dens); %symbolic to polynomial conversion of denominator F=tf(num,den) % LTI transfer function of F(s) in polynomial form F=zpk(F) % LTI transfer function of F(s) in factored form % Part (f) Loop Currents syms s I1 I2 I3 V A=[((5/s)+s+7) -(s+2) -5;-(s+2) ((3/s)+2*s+4) (s+2);-5 -(s+2) ((4/s)+8+s)] B=[I1;I2;I3] C=[V; 0; 0] B=inv(A)*C; pretty(B)% expressions of loop currents I1(s),I2(s),I3(s)

Anda mungkin juga menyukai