maximum number and indexing

3 vues (au cours des 30 derniers jours)
asad jaffar
asad jaffar le 3 Avr 2019
Commenté : Jan le 5 Avr 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

Réponses (1)

madhan ravi
madhan ravi le 3 Avr 2019
  7 commentaires
Walter Roberson
Walter Roberson le 3 Avr 2019
Jan
Jan le 5 Avr 2019
@asad: If madhan's answer solves your problem, be so kind to accept it.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by