plot sin function with sincommand

 Respuesta aceptada

Wayne King
Wayne King el 24 de Dic. de 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)

Más respuestas (0)

Etiquetas

Preguntada:

el 24 de Dic. de 2013

Comentada:

el 24 de Dic. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by