If condition without loop
조회 수: 4 (최근 30일)
이전 댓글 표시
i want to change as if 0<A(i,j)<=1 then 1 and if 1<A(i,j)<=2 then 2 and......i don't like to use loop.only use routing and chopping methods....
댓글 수: 0
답변 (3개)
Jan
2012년 6월 28일
if 0 < A(i,j) && A(i,j) <= 1
Please note, that if depending on the data it is not required to check 1 < A(i,j) again, when A(i, j) <= 1 has been excluded before (and no A < 0 cases appear).
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!