MATLAB: How to plot this equation on matlab. where omega = -pi to pi, and n= -15 to 15 .

MATLABplotting

syms n
omega = -pi:pi/50:pi;
f=(1/pi*n)*(sin(omega*n));
V = subs(f, n, -15:15);
plot(omega,V)

Best Answer

syms m
omega=-15:pi/50:15;
f=(1/pi*m)*(sin(omega*m));
V=symsum(f,m,-15,15);
plot(omega,V,'linewidth',2);
Related Question