Hw 2 solutions

Hw 2 solutions - lsim(H,u,t); -1.5-1-0.5 0.5 1 To: Out(1) 2...

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

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
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])];
Background image of page 4
Background image of page 5
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

This homework help was uploaded on 04/02/2008 for the course EE 324 taught by Professor Vaidya during the Spring '07 term at Iowa State.

Page1 / 5

Hw 2 solutions - lsim(H,u,t); -1.5-1-0.5 0.5 1 To: Out(1) 2...

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

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