フィルターのクリア

extracting positive numbers?

2 ビュー (過去 30 日間)
AR
AR 2015 年 12 月 16 日
編集済み: Stephen23 2015 年 12 月 17 日
I have a vector, X [197 1] which has values of 0 or positive numbers. I'd like to identify those indexes with only positive numbers as well as only use those values later in an algorithm? How best can I do this? Thank you.

採用された回答

dpb
dpb 2015 年 12 月 16 日
x=x(x>0);
Look for "logical addressing" in documentation...

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by