How can I find the indices of a vector?

19 ビュー (過去 30 日間)
Francesco
Francesco 2014 年 2 月 25 日
コメント済み: Francesco 2014 年 2 月 25 日
If I have a row vector,what command allows me to find the indexes that exceed a certain value that I want as a threshold. For example:
A =
0.1222
0.1350
0.1759
0.1110
0.1015
0.2599
0.1465
I would like in output the indices of the value grater or equal than 0.123, for example.

採用された回答

Mischa Kim
Mischa Kim 2014 年 2 月 25 日
編集済み: Mischa Kim 2014 年 2 月 25 日
Use
ind = find(A >= 0.123)
  1 件のコメント
Francesco
Francesco 2014 年 2 月 25 日
And If I want to extract some the numeric value of an 19x2 double array (for example) according to the number of the ind variable how can I do?

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

その他の回答 (1 件)

Thomas
Thomas 2014 年 2 月 25 日
編集済み: Thomas 2014 年 2 月 25 日
[r,c]=find(A>=0.123)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by