Sorting 2 row columns
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I have two colums
for example
x=[0.5 0.8 0.9 0.9 0.9 1]
y=[2 1.8 1.6 1.5 1.2 1.1]
I want to obtain this result
x=[0.5 0.8 0.9 1]
y=[2 1.8 1.2 1.1]
The lowest y-value that occurs for the x-value (that occurs multiple times), needs to be sorted.
Answers (1)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!