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 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