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
2021년 1월 3일
0 개 추천
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;
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!