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

1 visualizzazione (ultimi 30 giorni)
Hi All,
Is there any inbuilt matlab function to find the index of a particular entry in an 1D array?
Thanks in advance!
  2 Commenti
Hrishikesh Borate
Hrishikesh Borate il 19 Nov 2020
Hi,
This question has already been answered here. Could you please share some more details regarding your question?
Swati Sarangi
Swati Sarangi il 19 Nov 2020
I was looking for any inbuilt function in MATLAB which will give the desired output in a single line.

Accedi per commentare.

Risposta accettata

KALYAN ACHARJYA
KALYAN ACHARJYA il 19 Nov 2020
Modificato: KALYAN ACHARJYA il 19 Nov 2020
idx=find(array_data==particular_entry)

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by