EE 230 HW 7 Solutions Spring 2010

EE 230 HW 7 Solutions Spring 2010 - ,2.5) hold on...

Info iconThis preview shows pages 1–19. 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
Background image of page 4
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

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

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

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

View Full DocumentRight Arrow Icon
Background image of page 10
clear all close all time = -2:0.01:2; % 8 seconds gives us 8 cycles Vin = [(4*time(1:99)+6),(4*time(100:199)+2),(4*time(200:299)- 2),(4*time(300:401)-6)]; %%%%%%%%%%%%%%%%%%% part a %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Vout2 = -2*Vin; Vout1 = 10*(Vin>31/20)-10*(Vin<31/20);
Background image of page 11

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

View Full DocumentRight Arrow Icon
figure(1) plot(time,Vin, 'b' , 'linewidth' ,2.5) hold on plot(time,Vout2, 'r' , 'linewidth' ,2.5) hold on plot(time,Vout1, 'g' , 'linewidth' ,2.5) xlabel( 'Time(s)' ) grid on legend( 'Vin' , 'Vout2' , 'Vout1' ) title( 'Problem 10 part a' ) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%% part b %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Vout2 = -2*Vin -(1/5)*Vout1; Vout2(Vout2>=10)=10; Vout2(Vout2<=-10)=-10; figure(2) plot(time,Vin, 'b' , 'linewidth'
Background image of page 12
Background image of page 13

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

View Full DocumentRight Arrow Icon
Background image of page 14
Background image of page 15

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

View Full DocumentRight Arrow Icon
Background image of page 16
Background image of page 17

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

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

Unformatted text preview: ,2.5) hold on plot(time,Vout2, 'r' , 'linewidth' ,2.5) hold on plot(time,Vout1, 'g' , 'linewidth' ,2.5) xlabel( 'Time(s)' ) grid on legend( 'Vin' , 'Vout2' , 'Vout1' ) title( 'Problem 10 part b' ) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%% part c %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Vout2 = -2*Vin; Vout1 = 10*(Vin&lt;-11/40)-10*(Vin&gt;-11/40); figure(3) plot(time,Vin, 'b' , 'linewidth' ,2.5) hold on plot(time,Vout2, 'r' , 'linewidth' ,2.5) hold on plot(time,Vout1, 'g' , 'linewidth' ,2.5) xlabel( 'Time(s)' ) grid on legend( 'Vin' , 'Vout2' , 'Vout1' ) title( 'Problem 10 part c' ) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
View Full Document

This note was uploaded on 02/01/2012 for the course EE 230 taught by Professor Mina during the Fall '08 term at Iowa State.

Page1 / 19

EE 230 HW 7 Solutions Spring 2010 - ,2.5) hold on...

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

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