Min to Max in MatLab

5 Ansichten (letzte 30 Tage)
Maja Pavkovic
Maja Pavkovic am 18 Apr. 2016
Kommentiert: Maja Pavkovic am 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Function Creation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by