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?

 Akzeptierte Antwort

dpb
dpb am 12 Okt. 2016

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 12 Okt. 2016

Beantwortet:

dpb
am 12 Okt. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by