フィルターのクリア

Return Row of Array corresponding to a certain element?

1 回表示 (過去 30 日間)
aljawada13
aljawada13 2016 年 12 月 17 日
コメント済み: aljawada13 2016 年 12 月 17 日
How can I call a certain row from an array "A" that contains a certain element (say "a")?

採用された回答

the cyclist
the cyclist 2016 年 12 月 17 日
A(any(A==a,2),:)
  2 件のコメント
Image Analyst
Image Analyst 2016 年 12 月 17 日
aljawada13, if "a" is a fractional number that is not a power of 2, or an integer, be mindful of the faq for comparing floating point numbers: http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F
aljawada13
aljawada13 2016 年 12 月 17 日
Thanks!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by