Find max value position

6 次查看(过去 30 天)
Hi,
I am trying to sort out a problem where I got 210 rows in 1 column, which variable is called 'Force1' and I need to find the position of the max value. I tried the next code:
x=find(max(Force1))
The actual value is in row 170, however, matlab gives me x=1.
Then I tried to apply this one:
x=find(max(Force1))
and result is x= to 210 rows where first one is the max value and then 0
Thank you
Gonzalo Gomez Guerrero

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020-6-1
编辑:KALYAN ACHARJYA 2020-6-1
x=find(Force1==max(Force1))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by