Rounding-off zero to negative
이전 댓글 표시
Is there any built-in function in matlab that takes all the negative values equal to zero? or round off negative values to zero? Regards
채택된 답변
추가 답변 (1개)
Walter Roberson
2011년 8월 16일
A = max(A,0);
But cross-check whether this gives you the behaviour you want for NaN.
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!