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 Center および File Exchange2-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