Convert Matrix to binary format

31 次查看(过去 30 天)
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by