Min to Max in MatLab

1 visualización (últimos 30 días)
Maja Pavkovic
Maja Pavkovic el 18 de Abr. de 2016
Comentada: Maja Pavkovic el 18 de Abr. de 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

Respuesta aceptada

J. Webster
J. Webster el 18 de Abr. de 2016
v1 = sort(v1)

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by