I have a vector containing 2000 values and when I plot it, the x axis goes from 0 to 2000. I need the x axis to be scaled from 0 to 60, but still show the same graph that it did initially. How do I do this?

 Respuesta aceptada

dpb
dpb el 12 de Oct. de 2016

0 votos

x=linspace(0,60,length(y));
plot(x,y)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Oct. de 2016

Respondida:

dpb
el 12 de Oct. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by