plot sinc function
Mostrar comentarios más antiguos
Hi,
I want to know how to plot a (smooth) sinc on matlab.
Thanks
Respuestas (2)
Matt Fig
el 30 de Abr. de 2011
ezplot(@sinc)
Or, more generally:
x = -5:.01:5;
plot(x,sinc(x))
This is if you have the signal processing toolbox. If not, you will have to define your own SINC function. If that is the case, show what you have done so far on it.
3 comentarios
medhat
el 30 de Abr. de 2011
dm
el 30 de Abr. de 2011
How can a step-size of 0.01 not be good enough for a smooth plot? The difference between 0.01 and 0.0001 is hardly visible here. However, try using linesmooth in the plot command, i.e.
plot(x,sinc(x),'linesmooth','on')
medhat
el 30 de Abr. de 2011
badour ashkar
el 26 de Nov. de 2019
0 votos
plot(x,sinc(x))
2 comentarios
Andile Simelane
el 12 de Mayo de 2020
It doesn't work. always gives "undefined Function sinc for input arguments of type double"
Walter Roberson
el 12 de Mayo de 2020
sinc() is part of the Signal Processing Toolbox
Categorías
Más información sobre Smoothing and Denoising en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!