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?

 채택된 답변

dpb
dpb 2016년 10월 12일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2016년 10월 12일

답변:

dpb
2016년 10월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by