Hi Guys
this code gives me this error when I tried to change it a little
Any solutions?
syms n t ;n=50; t=linspace(-5,5,1000); T=max(t); wo=(2*pi)/T; for k=1:n ao= (1/T).*(int('1',t,0,t)); an= (2/T).*(int('1*cos(n*wo*t)',t,0,t)) bn= (2/T).*(int('1*sin(n*wo*t)',t,0,t)) f=ao+(an.*cos(k.*wo.*t))+(bn.*sin(k.*wo.*t));endfigure(1);clf(1)plot(t,f)xlabel('Time')ylabel('Amplitude')title('Fourier sawtooth Trasnform')
Best Answer