Min to Max in MatLab

1 view (last 30 days)
Maja Pavkovic
Maja Pavkovic on 18 Apr 2016
Commented: Maja Pavkovic on 18 Apr 2016
Which command do I need to order values from min to max?
Something like: v1 = [2, 5, 9, 1]
And the output should be: v1 = 1, 2, 5, 9

Accepted Answer

J. Webster
J. Webster on 18 Apr 2016
v1 = sort(v1)

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!