Convert Matrix to binary format

31 Ansichten (letzte 30 Tage)
Damith
Damith am 8 Mär. 2014
Kommentiert: Damith am 8 Mär. 2014
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.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 8 Mär. 2014
out=your_array>0.1

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by