How can I expand x axis to have normal plot?

조회 수: 2 (최근 30일)
Jaehwi Bong
Jaehwi Bong 2019년 5월 14일
답변: Stephan 2019년 5월 14일
I have 500 values of x and y.
When I plotted it, I got something weird plot.
What can I do for that?
t=data{:,1};
y=data{:,2};
plot(t,y)

채택된 답변

Stephan
Stephan 2019년 5월 14일
A(:,1)=data{:,1};
A(:,2)=data{:,2};
A=sortrows(A,1);
plot(A(:,1),A(:,2))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by