Réponses (2)

Matt Fig
Matt Fig le 30 Avr 2011

2 votes

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 commentaires

medhat
medhat le 30 Avr 2011
My problem is in the smoothness of the plot. I want a smooth sinc such that I can extract the figure and put it in a file to be printed.
The previous code does not give me a smooth one even if I decreased the step
dm
dm le 30 Avr 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
medhat le 30 Avr 2011
Thank you very much, that is what I want. The problem appears when printing the figure.
Thanks

Connectez-vous pour commenter.

badour ashkar
badour ashkar le 26 Nov 2019

0 votes

plot(x,sinc(x))

2 commentaires

Andile Simelane
Andile Simelane le 12 Mai 2020
It doesn't work. always gives "undefined Function sinc for input arguments of type double"
Walter Roberson
Walter Roberson le 12 Mai 2020
sinc() is part of the Signal Processing Toolbox

Connectez-vous pour commenter.

Produits

Question posée :

le 30 Avr 2011

Commenté :

le 12 Mai 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by