question about sinc function ploting

hi
I want to move my "sinc" function from negative to positive side. The function is;
t=-40.955:0.005:40.960;
u=(200/pi)*(15*sinc(15*t)-3*sinc(3*t));
It needs to start from "0". would you please help me with that? how can i move my axis in "sinc" function
like this plot. Thanks in advance.
test.PNG

 Respuesta aceptada

Star Strider
Star Strider el 5 de Sept. de 2019
To move it in the plot, simply add the appropriate value to the ‘t’ vector:
t=-40.955:0.005:40.960;
u=(200/pi)*(15*sinc(15*t)-3*sinc(3*t));
figure
plot(t-min(t), u)
grid
Experiment to get the result you want.

2 comentarios

ADNAN KIRAL
ADNAN KIRAL el 5 de Sept. de 2019
thanks.
Star Strider
Star Strider el 5 de Sept. de 2019
As always, my pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 5 de Sept. de 2019

Comentada:

el 5 de Sept. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by