plot sin function with sincommand

3 vues (au cours des 30 derniers jours)
iman
iman le 24 Déc 2013
Commenté : iman le 24 Déc 2013
Hi,
I want to know how to plot a sinc on matlab with sin
Thanks

Réponse acceptée

Wayne King
Wayne King le 24 Déc 2013
How about just using sinc() if you have the Signal Processing Toolbox.
If not
x = linspace(-5,5);
y = sin(pi*x)./(pi*x);
y(x==0) = 1;
plot(x,y)
  1 commentaire
iman
iman le 24 Déc 2013
Thank you very much

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by