These commands create the expected plot:
x=.1:.1:4*pi;y=sin(pi*x)/pi;plot(x,y)
However, the following commands create a horizontal line at zero:
x=.1:.1:4*pi;y=(sin(pi*x))/(pi*x);plot(x,y)
(I don't have a sinc function.) I don't understand why the second set of commands doesn't work. Thoughts?
Best Answer