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 Center および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by