lab10realptB

# lab10realptB - %Kperror=limit(30(1...

This preview shows page 1. Sign up to view the full content.

%Lab 10 Part B: %for K=10^6 syms s K t K=10^6; gn=(K*((s+1)*(s+2))); %G(s) numerator gd=((s^2)*(s+3)*(s+4)*(s+5)); %G(s) denominator hn=(s+6); %H(s) numerator hd=((s+7)*(s+8)); %H(s) denominator g1=(gn/gd); %G(s) h1=(hn/hd); %H(s) %G=(gn*hd)/(gd*hd+((gn)*(hn-hd))); Gs=g1/(1+g1*h1-g1) %transfer function %simplify (f) pretty (Gs); Kp=limit(Gs,s,0,'right') Kv=limit(((Gs)*s),s,0,'right') Ka=limit(((Gs)*s^2),s,0,'right')
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %Kperror=limit((30/(1+g1*h1)),s,0,'right') %Kverror=limit((30/s)/(1+g1*h1),s,0,'right') %Kaerror=limit((30/s^2)/(1+g1*h1),s,0,'right') R1=laplace(30*t^0); e1=R1/(1+g1*h1); Kperror=limit(s*e1,s,0,'right') R2=laplace(30*t^1); e2=R2/(1+g1*h1); Kverror=limit(s*e2,s,0,'right') R3=laplace(30*t^2); e3=R3/(1+g1*h1); Kaerror=limit(s*e3,s,0,'right')...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online