sorting the values of a vector into a new one by its elements size
Show older comments
Hey all
I made some measurements. Between these values, I interpolated. Now, I want to merge both vectors into one but withouth changing the order. Just copy in the new interpolated values into the intervalls of the measured values.
Is there a predefined function from matlab or do I have to write it myself?
Thanks in advance
2 Comments
madhan ravi
on 29 Nov 2018
upload a short example to know what you are talking about
MagJ_
on 29 Nov 2018
Accepted Answer
More Answers (1)
madhan ravi
on 29 Nov 2018
Edited: madhan ravi
on 29 Nov 2018
Simple and easy solution:
xnew=sort([x y])
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!