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?

 Risposta accettata

dpb
dpb il 12 Ott 2016
x=linspace(0,60,length(y));
plot(x,y)

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Richiesto:

il 12 Ott 2016

Risposto:

dpb
il 12 Ott 2016

Community Treasure Hunt

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

Start Hunting!

Translated by