clc
clear
close
n=4;
x=linspace(0,360,200);
f=zeros(n,length(x));
for i=1:n
f(i,:)=sind((2*i-1)*x)/(2*i-1);
end
plot(x,sum(f))
grid on
xlabel('angle(degrees)')
Please do like the solution :-)
Plot in Matlab the function below (add the functions) sin(x)+sin(3x)/3+sin(5x)/5+sin(7x)/7+... Amplitude is 4/1 here 1st harmonic...