HW6.pdf

# HW6.pdf - clc clear%Problem 1:Simulate Unit Step Response...

• Homework Help
• 6

This preview shows pages 1–6. Sign up to view the full content.

clc clear %Problem 1:Simulate Unit Step Response GpGc=tf([4.88 11.1259 6.2459],[1 -0.1 0 0]); a=feedback(GpGc,1) figure(1) step(a) stepinfo(a) grid on %Problem 2:Simulate Unit Step Response Gc1=tf([0.5924 0.5924*6],[1 8]) Gc2=tf([1 0.2],[1 0.02]) Gp1=tf([54],[1 6 0]) sys=Gc1*Gc2*Gp1 figure(2) rlocus(sys) axis([-15 15 -15 15]); b=feedback(sys,1) figure(3) step(b) stepinfo(b) %Problem 3: num=[54]; den=[1 6 0]; sys=tf(num,den); Ts=1/50; sys_d1=c2d(sys,Ts, 'zoh' ); sys_out=zpk(sys_d1) num_p=54; den_p=[1 6 0]; sys_p=tf(num_p,den_p); sys_d=c2d(sys_p,Ts, 'zoh' ); sys_out=zpk(sys_d); numd1=[1 -0.8869]; numd1=numd1*0.5888; dend1=[1 -0.84978]; numd2=[1 -0.99]; dend2=[1 -0.999]; con1=tf(numd1,dend1,Ts); con2=tf(numd2,dend2,Ts); gofz=sys_d*con1*con2; figure(4) rlocus(gofz); zgrid axis equal ; axis([-1 1 -1 1]); cl_dsys=feedback(gofz,1); 1

This preview has intentionally blurred sections. Sign up to view the full version.

[x1,t]=step(cl_dsys,2); figure(5) stairs(t,x1);hold on ; grid on a = 4.88 s^2 + 11.13 s + 6.246 -------------------------------- s^3 + 4.78 s^2 + 11.13 s + 6.246 Continuous-time transfer function. ans = struct with fields: RiseTime: 0.2417 SettlingTime: 2.8039

This preview has intentionally blurred sections. Sign up to view the full version.

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Fall '09
• Continuous-time transfer function

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern