Find the index value
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Silpa K
el 6 de Oct. de 2019
Comentada: KALYAN ACHARJYA
el 13 de Oct. de 2019
I have a an array.I need to find its index value.How can i do that?
1 comentario
Walter Roberson
el 6 de Oct. de 2019
Is the index Circulated, Almost Uncirculated, or Mint Condition?
Respuesta aceptada
KALYAN ACHARJYA
el 6 de Oct. de 2019
Editada: KALYAN ACHARJYA
el 6 de Oct. de 2019
>> 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!