Min to Max in MatLab

3 visualizzazioni (ultimi 30 giorni)
Maja Pavkovic
Maja Pavkovic il 18 Apr 2016
Commentato: Maja Pavkovic il 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

Risposta accettata

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

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by