How to replace values less than equal to zero values in a matrix?

I have a marix of 44450*8 dimention, which contain some zero and negative values, I want to replace them with NaN. how to do that?

 채택된 답변

추가 답변 (1개)

Sai Naga Raju
Sai Naga Raju 2021년 1월 3일

0 개 추천

matrix (matrix<=0)= NaN

댓글 수: 1

laith awwad
laith awwad 2021년 4월 21일
편집: laith awwad 2021년 4월 21일
HOW TO NAME THE VARIABLE BECAUSE IF I WRIGHT IT GIVES ME AN ERROR FOR EXAMPLE e =matrix (matrix<=0)= NaN;

댓글을 달려면 로그인하십시오.

제품

태그

질문:

2018년 11월 14일

편집:

2021년 4월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by