Borrar filtros
Borrar filtros

What is the meaning of [B,J]=sort(A,'descend')?

3 visualizaciones (últimos 30 días)
zhenyu zeng
zhenyu zeng el 2 de Abr. de 2019
Editada: Stephen23 el 2 de Abr. de 2019
What is the meaning of [B,J]=sort(A,'descend')
Why can he use [B,J] here?
  1 comentario
Stephen23
Stephen23 el 2 de Abr. de 2019
Editada: Stephen23 el 2 de Abr. de 2019
"What is the meaning of [B,J]=sort(A,'descend')"
B = the sorted data.
J = the sort indices along the dimension sorted along.
'descend' = tells sort to sort the values into descending order.
"Why can he use [B,J] here?"
Because its author read the documentation:

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by