How to find the index of a specific entry in an array

1 visualización (últimos 30 días)
Swati Sarangi
Swati Sarangi el 19 de Nov. de 2020
Comentada: Swati Sarangi el 19 de Nov. de 2020
Hi All,
Is there any inbuilt matlab function to find the index of a particular entry in an 1D array?
Thanks in advance!
  2 comentarios
Hrishikesh Borate
Hrishikesh Borate el 19 de Nov. de 2020
Hi,
This question has already been answered here. Could you please share some more details regarding your question?
Swati Sarangi
Swati Sarangi el 19 de Nov. de 2020
I was looking for any inbuilt function in MATLAB which will give the desired output in a single line.

Iniciar sesión para comentar.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 19 de Nov. de 2020
Editada: KALYAN ACHARJYA el 19 de Nov. de 2020
idx=find(array_data==particular_entry)

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by