5 List all books and references you consulted in the Referen
5 List all books and references you consulted in the Reference section of your report.
Solution
Question 1 has already been answered. Solution of question 2 is as follows:
% Sampling Frequency
fsamp=10^5;
tsamp= 1/fsamp;
fnyquist=fsamp/2;
dur=10^-3; % duration of signal
t=0 : tsamp : dur-tsamp
% Original signal
x=5* cos (pi*1333*t) % frequency =(4*pi)/(3*T)
xn=x;
% Harmonics
for i=1:1: 10 % the value is 10 for 10 harmonics
{
x1[i]=5* cos (pi*1333*i*t);
xn= xn+x1[i];
}
End
The value of i will be changed according to question. For ii part, i=1:1:30 and for iii part, i=1:1:99

