Convert Matrix to binary format

31 vues (au cours des 30 derniers jours)
Damith
Damith le 8 Mar 2014
Commenté : Damith le 8 Mar 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.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 8 Mar 2014
out=your_array>0.1
  1 commentaire
Damith
Damith le 8 Mar 2014
Thanks a lot. It worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by