Experiment 6 SS
Experiment 6 SS
Part 2:
%% Experiment No. 6
%% Part b: Reconstruction of even symmetric square wave using compact trigonometric Fourier
series
% Consider the time period, T=2*pi and the amplitude,A=1 and 50 % Duty cycle.
close all
clear all
Total_terms(1,:) = 1/2;
for n=1:No_harmonics
Total_terms(n+1,:) = (2/(n*pi)*sin(n*pi/2))*cos(n*t);
end
figure(1)
for i=1:No_harmonics
pause(0.5);
disp(i)
end