so05-3723-06f - 3 s^6 32 s^5 143 s^4 344 s^3 477 s^2 387 s...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ECEN/MAE 3723 (Fall 2006) Solution for Homework 5 Problem 1(a): Matlab code t=0:0.01:1; x=4*cos(5*pi*t-(pi/4)); plot(t,x) xlabel('time, t') ylabel('x(t)') title('Plot of signal x(t)=4*cos(5*pi*t-(pi/4))') 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -4 -3 -2 -1 0 1 2 3 4 time, t x(t) Plot of signal x(t)=4*cos(5*pi*t-(pi/4)) Problem 2: (a)
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 (b) 0 20 40 60 80 100 120 0 1 2 3 4 5 6 7 8 9 10 time, t v Problem 3: (a) At least show one subsystem. Model on Main window Subsystem for f(t)
Background image of page 2
3 Subsystem for x1 Subsystem for x2 (b) 0 5 10 15 20 25 30 35 40 45 50 -6 -4 -2 0 2 4 6 8 x time, t x1 x2
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Problem 4: (a) Matlab code num=[-0.75]; den=[-2 -3]; k=4; H=zpk(num,den,k) Matlab Output Zero/pole/gain: 4 (s+0.75) ----------- (s+2) (s+3) (b) Matlab code z=[-0.75]; p-[-3;-2]; k=4; [A B C D]=zp2ss(z,p,k) Matlab Output A = -5.0000 -2.4495 2.4495 0 B = 1 0 C = 4.0000 1.2247 D = 0
Background image of page 4
5 (c) Matlab code num1=[4 3]; den1=[1 5 6]; G1=tf(num1,den1); num2=[2 1]; den2=[3 2 4]; G2=tf(num2,den2); sys=G1*inv(1+G1*G2) Matlab Output Transfer function: 12 s^5 + 77 s^4 + 179 s^3 + 224 s^2 + 192 s + 72
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ---------------------------------------------------------- 3 s^6 + 32 s^5 + 143 s^4 + 344 s^3 + 477 s^2 + 387 s + 162 Problem 5: (a) Matlab Code num=[1]; den=[1000 50]; H=tf(num,den) step(10*H); title('Step Response of H(s)') 20 40 60 80 100 120 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 Step Response of H(s) Time (sec) Amplitude 6 (b) Matlab code bode(num,den) title('Bode Diagram of H(s)') -30-25-20-15-10-5 Magnitude (dB) 10-2 10-1 10 10 1 10 2-90-45 45 Phase (deg) Bode Diagram of H(s) Frequency (rad/sec) (c) Matlab code G=feedback(500*H,1) Transfer function: 500 ------------ 1000 s + 550 Matlab code step(10*G); title('Step Response of G(s)') bode(G) title('Bode Diagram of G(s)') 7 2 4 6 8 10 12 1 2 3 4 5 6 7 8 9 10 Step Response of G(s) Time (sec) Amplitude-30-25-20-15-10-5 Magnitude (dB) 10-2 10-1 10 10 1-90-45 Phase (deg) Bode Diagram of G(s) Frequency (rad/sec)...
View Full Document

This note was uploaded on 12/26/2010 for the course ECEN 3723 taught by Professor Staff during the Fall '08 term at Oklahoma State.

Page1 / 7

so05-3723-06f - 3 s^6 32 s^5 143 s^4 344 s^3 477 s^2 387 s...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online