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

2 ビュー (過去 30 日間)
Swati Sarangi
Swati Sarangi 2020 年 11 月 19 日
コメント済み: Swati Sarangi 2020 年 11 月 19 日
Hi All,
Is there any inbuilt matlab function to find the index of a particular entry in an 1D array?
Thanks in advance!
  2 件のコメント
Hrishikesh Borate
Hrishikesh Borate 2020 年 11 月 19 日
Hi,
This question has already been answered here. Could you please share some more details regarding your question?
Swati Sarangi
Swati Sarangi 2020 年 11 月 19 日
I was looking for any inbuilt function in MATLAB which will give the desired output in a single line.

サインインしてコメントする。

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 11 月 19 日
編集済み: KALYAN ACHARJYA 2020 年 11 月 19 日
idx=find(array_data==particular_entry)
  1 件のコメント
Swati Sarangi
Swati Sarangi 2020 年 11 月 19 日
Thanks for the answer.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by