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

1 view (last 30 days)
Hi All,
Is there any inbuilt matlab function to find the index of a particular entry in an 1D array?
Thanks in advance!
  2 Comments
Hrishikesh Borate
Hrishikesh Borate on 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 on 19 Nov 2020
I was looking for any inbuilt function in MATLAB which will give the desired output in a single line.

Sign in to comment.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 19 Nov 2020
Edited: KALYAN ACHARJYA on 19 Nov 2020
idx=find(array_data==particular_entry)

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!