How can I expand x axis to have normal plot?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jaehwi Bong
am 14 Mai 2019
Beantwortet: Stephan
am 14 Mai 2019
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)
0 Kommentare
Akzeptierte Antwort
Stephan
am 14 Mai 2019
A(:,1)=data{:,1};
A(:,2)=data{:,2};
A=sortrows(A,1);
plot(A(:,1),A(:,2))
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!