Find the index value

2 次查看(过去 30 天)
I have a an array.I need to find its index value.How can i do that?

采纳的回答

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 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by