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

2 Ansichten (letzte 30 Tage)
Swati Sarangi
Swati Sarangi am 19 Nov. 2020
Kommentiert: Swati Sarangi am 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 Kommentare
Hrishikesh Borate
Hrishikesh Borate am 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 am 19 Nov. 2020
I was looking for any inbuilt function in MATLAB which will give the desired output in a single line.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 19 Nov. 2020
Bearbeitet: KALYAN ACHARJYA am 19 Nov. 2020
idx=find(array_data==particular_entry)

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by