1. b)
clear all
clc
close all
wt = linspace(0,2*pi,1000);
n = 10;
f = zeros(1,length(wt);
for i=1:2:n
f = f + 4/(i*pi).*sin(i.*wt);
end
plot(wt,f)
hold on
n = 30;
f = zeros(1,length(wt);
for i=1:2:n
f = f + 4/(i*pi).*sin(i.*wt);
end
plot(wt,f,'r')
xlim([0