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

1 vue (au cours des 30 derniers jours)
Swati Sarangi
Swati Sarangi le 19 Nov 2020
Commenté : Swati Sarangi le 19 Nov 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 commentaires
Hrishikesh Borate
Hrishikesh Borate le 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 le 19 Nov 2020
I was looking for any inbuilt function in MATLAB which will give the desired output in a single line.

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 19 Nov 2020
Modifié(e) : KALYAN ACHARJYA le 19 Nov 2020
idx=find(array_data==particular_entry)

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by