mec 320 homework 9

1
Elianne Gabbay 108717291 Homework 9 %Homework 9 Problem 3 clear clc T = 1; wo = (2*pi)/T; t = [-1:1/256:1]; term_1 = (-2/pi)*sin(wo*t); term_2 = (1/pi)*sin(2*wo*t); term_3 = (-2/(3*pi))*sin(3*wo*t); sum = term_1+term_2+term_3; figure plot(t,sum,t,term_1,t,term_2,t,term_3) legend('term_1','term_2','term_3','sum')

Upload: elianne-gabbay

Post on 11-Nov-2015

213 views

Category:

Documents


0 download

DESCRIPTION

Graph for homework

TRANSCRIPT

Elianne Gabbay 108717291Homework 9

%Homework 9 Problem 3clearclcT = 1;wo = (2*pi)/T;t = [-1:1/256:1];term_1 = (-2/pi)*sin(wo*t);term_2 = (1/pi)*sin(2*wo*t);term_3 = (-2/(3*pi))*sin(3*wo*t);sum = term_1+term_2+term_3;figureplot(t,sum,t,term_1,t,term_2,t,term_3)legend('term_1','term_2','term_3','sum')