replace minimum value of each column with nan
조회 수: 1 (최근 30일)
이전 댓글 표시
i have a 10*10 matrix.
How to replace the minimum value from each column with nans.
ex; [10,5
2,8
8,1];
the desired out put should be like
[10,5
nan,8
8,nan];
thanks
댓글 수: 0
채택된 답변
madhan ravi
2019년 3월 18일
편집: madhan ravi
2019년 3월 18일
M(M==min(M))=nan % where M is your matrix
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 NaNs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!