Find max value position

5 ビュー (過去 30 日間)
Gonzalo Guerrero
Gonzalo Guerrero 2020 年 6 月 1 日
コメント済み: Gonzalo Guerrero 2020 年 6 月 1 日
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))
  3 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 6 月 1 日
Sorry, my bad
Gonzalo Guerrero
Gonzalo Guerrero 2020 年 6 月 1 日
Thank you, it worked! :D

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by