how can we know the index of this data? for example,i want know index of 0 and -30
x=[0,-10,-30,-30,-10,-20,-20,-0,-30]

 採用された回答

Paulo Silva
Paulo Silva 2011 年 5 月 7 日

1 投票

I0=find(x==0)
I30=find(x==-30)

1 件のコメント

Sahab
Sahab 2011 年 5 月 7 日
wow so easy..thanks.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by