Convert Matrix to binary format

31 ビュー (過去 30 日間)
Damith
Damith 2014 年 3 月 8 日
コメント済み: Damith 2014 年 3 月 8 日
Hi,
I have a matrix of (365,40) precipitation values. I need to convert it to binary matrix format to obtain zeros (0) for < 0.1 mm precipitation amounts and 1 for >0.1 mm precipitation amounts in MATLAB. What's the easiset way to do it? Any help is appreciated.
Thanks.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 3 月 8 日
out=your_array>0.1
  1 件のコメント
Damith
Damith 2014 年 3 月 8 日
Thanks a lot. It worked.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by