Indexing

1 回表示 (過去 30 日間)
Sahab
Sahab 2011 年 5 月 7 日
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 日
I0=find(x==0)
I30=find(x==-30)
  1 件のコメント
Sahab
Sahab 2011 年 5 月 7 日
wow so easy..thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by