필터 지우기
필터 지우기

Find the index value

조회 수: 1 (최근 30일)
Silpa K
Silpa K 2019년 10월 6일
댓글: KALYAN ACHARJYA 2019년 10월 13일
I have a an array.I need to find its index value.How can i do that?
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 10월 6일
Is the index Circulated, Almost Uncirculated, or Mint Condition?

댓글을 달려면 로그인하십시오.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 6일
편집: KALYAN ACHARJYA 2019년 10월 6일
>> array_data=2:3:30
array_data =
2 5 8 11 14 17 20 23 26 29
Case 1: I assumed you are looking for index value of specific element in the array, say 17
idx=find(array_data==17)
Case 2: for all array Elements
idx=1:length(array_data)
Hope it helps!
  댓글 수: 10
Silpa K
Silpa K 2019년 10월 13일
Thank you sir.
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 13일
Answer Credit Goes to @Walter Sir

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by