I have a input matrix 'a', a=[10 0.9; 3 0.98; 16 0.6; 1 0.4]. The sorted matrix(output matrix) should be [1 0.4 ;3 0.98;10 0.9 ;16 0.6]. Can anybody help in getting the required results.

2 comentarios

Ive J
Ive J el 31 de En. de 2021
doc sort
Sourav Kumar Sahu
Sourav Kumar Sahu el 17 de Feb. de 2021
it worked thank you

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 31 de En. de 2021

0 votos

The sortrows function can likely do what you want.

Categorías

Preguntada:

el 31 de En. de 2021

Comentada:

el 17 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by