Is it possible to rectify the figure such that the zig-zag effect doesn't occur?

Hi folks,
I have a series of graphs as per below. With all of them, they appear to have this "wonky" tail and I'm not sure what causes it!
Any ideas and suggestions to rectify this would be most appreciated!

 Akzeptierte Antwort

Star Strider
Star Strider am 18 Jan. 2022
Using one of the sort functions to sort on the independent variable could work. Remember to sort both variables by the same sorting index for each plot.

3 Kommentare

[x, sortOrder] = sort(x, 'ascend');
y = y(sortOrder);
Again, we have no idea if this will do what you want as it still plots all the data but goes from left to right with no zig zag.
Alternatively, perhaps you just want to omit the first two points.
x = x(3:end);
y = y(3:end);
@Star Strider @Image Analyst thank you! Excellent advice, as always!
As always, (our) pleasure!
.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by