How to replace values less than equal to zero values in a matrix?
조회 수: 37 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
추가 답변 (1개)
Sai Naga Raju
2021년 1월 3일
matrix (matrix<=0)= NaN
댓글 수: 1
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;
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!