maximum number and indexing

6 visualizaciones (últimos 30 días)
asad jaffar
asad jaffar el 3 de Abr. de 2019
Comentada: Jan el 5 de Abr. de 2019
how can i find maximun number from an array for example .a=[2,44,6,77,3,9],how can i find max 2 numbers which are ,44 and 77 from a single command ? and how to know there index .thanks

Respuestas (1)

madhan ravi
madhan ravi el 3 de Abr. de 2019
maxk(a,2)
  7 comentarios
Walter Roberson
Walter Roberson el 3 de Abr. de 2019
Jan
Jan el 5 de Abr. de 2019
@asad: If madhan's answer solves your problem, be so kind to accept it.

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by