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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by