Point at which max occurs

5 次查看(过去 30 天)
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]

采纳的回答

Matt Fig
Matt Fig 2012-11-20
编辑:Matt Fig 2012-11-20
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])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by