Effacer les filtres
Effacer les filtres

Point at which max occurs

1 vue (au cours des 30 derniers jours)
aswathy
aswathy le 20 Nov 2012
Commenté : James Cassata le 11 Jan 2018
how to find out the index at which max occurs in a series of data in matlab??
these are my data [1 5 6 7 8 9 10 12 2 7 8 11 5]

Réponse acceptée

Matt Fig
Matt Fig le 20 Nov 2012
Modifié(e) : Matt Fig le 20 Nov 2012
It is always a good idea to read the doc for any such question:
doc max
docsearch('maximum value')
The two output call to the MAX function gives you what you need.
[maxval,index] = max([1 5 6 7 8 9 10 12 2 7 8 11 5])
  1 commentaire
James Cassata
James Cassata le 11 Jan 2018
0 help

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by