{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Hw 2 solutions

# Hw 2 solutions - lsim(H,u,t-1.5-1-0.5 0.5 1 To Out(1 2 4 6...

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

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

View Full Document

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

View Full Document
6.53 clear; x=linspace(-20, 20, 100); y1=abs(x)./(abs((x-10).*i+1).*abs((x+10).*i+1)); subplot(3,1,1); plot(x,y1); y2=abs((x+4).*i).*abs((x-4).*i)./abs(x.*i+1); subplot(3,1,2); plot(x,y2); y3=abs(x.*i-1)./abs(x.*i+1); subplot(3,1,3); plot(x,y3); -20 -15 -10 -5 0 5 10 15 20 0 0.5 1 -20 -15 -10 -5 0 5 10 15 20 0 10 20 -20 -15 -10 -5 0 5 10 15 20 0 1 2 6.40 The first one is the force response, the second one is the nature response. a)[u,t] = gensig('square',20,20,0.1); H = [tf([1 0 0],[1 3 2]) ; tf([-7 -4] ,[1 3 2])];
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: lsim(H,u,t); -1.5-1-0.5 0.5 1 To: Out(1) 2 4 6 8 10 12 14 16 18 20-3-2-1 1 To: Out(2) Linear Simulation Results Time (sec) Amplitude b) [u,t] = gensig('square',20,20,0.1); H = [tf([1 0 0],[1 2 5]) ; tf([-5 -10] ,[1 2 5])]; lsim(H,u,t); -1.5-1-0.5 0.5 1 2 4 6 8 10 12 14 16 18 20-3-2-1 1 Linear Simulation Results Time (sec)...
View Full Document

{[ snackBarMessage ]}

### Page1 / 5

Hw 2 solutions - lsim(H,u,t-1.5-1-0.5 0.5 1 To Out(1 2 4 6...

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

View Full Document
Ask a homework question - tutors are online