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

조회 수: 37 (최근 30일)
Puspa patra
Puspa patra 2018년 11월 14일
편집: laith awwad 2021년 4월 21일
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?

채택된 답변

Adam
Adam 2018년 11월 14일
myMatrix( myMatrix <= 0 ) = NaN

추가 답변 (1개)

Sai Naga Raju
Sai Naga Raju 2021년 1월 3일
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;

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

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by