Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

MEC 320 Homework 9

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

ElianneGabbay

108717291
Homework9

%Homework9Problem3
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')

You might also like