How extract value form an array?

5 ビュー (過去 30 日間)
Francesco
Francesco 2014 年 2 月 25 日
コメント済み: Francesco 2014 年 2 月 25 日
I have a array of 19x2 double. >> matrix
matrix =
30.0000 20.0000
28.7500 17.5000
28.0000 16.0000
27.5000 15.0000
31.0000 22.0000
32.5000 17.5000
If I want to extract some numeric value of this double array (for example) according to the number of the ind variable
ind = find(A >= 0.123)
Where A is another variable related to matrix variable. How can I do?
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 25 日
What is the size of A?

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 25 日
Maybe you want
matrix(ind,:)
  1 件のコメント
Francesco
Francesco 2014 年 2 月 25 日
Thanks, It's ok!

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

その他の回答 (1 件)

Paul
Paul 2014 年 2 月 25 日
編集済み: Paul 2014 年 2 月 25 日
matrix(ind)
Since ind contains two indices in this case, you can do:
matrix(ind(1))
to find the value corresponding to the first index only.

カテゴリ

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