フィルターのクリア

Hi!!! I have a N-dimensional matrix. I want to convert into vector by discarding the decimal values less the 0. Please provide matlab code for this. Thank you

1 回表示 (過去 30 日間)
Hi!!! I have a N-dimensional matrix. I want to convert into vector by discarding the decimal values less the 0. Please provide matlab code for this. Thank you

採用された回答

Roger Stafford
Roger Stafford 2018 年 2 月 26 日
Let M be your matrix.
M = M(M>=0);
  3 件のコメント
SHWETA KHARA
SHWETA KHARA 2018 年 2 月 26 日
Hey!! I am getting column wise.. how to get all values in 1 row
Roger Stafford
Roger Stafford 2018 年 2 月 26 日
編集済み: Roger Stafford 2018 年 2 月 26 日
M = reshape(M(M>=0),1,[]);

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by