필터 지우기
필터 지우기

replacement of for loop

조회 수: 1 (최근 30일)
Khawaja Asim
Khawaja Asim 2012년 2월 26일
I am writing this statement as replacement of for loop operation
indexes= ROI~=255 && ROI~=0;
ROI is a matrix and I am trying to find those indexes in the matrix ROI whose values are other than 0 and 255. but this statement gives some error. Kindly help by showing me correct syntax.

채택된 답변

Jiro Doke
Jiro Doke 2012년 2월 26일
It should be & instead of &&
indexes= ROI~=255 & ROI~=0;
  댓글 수: 1
Khawaja Asim
Khawaja Asim 2012년 2월 26일
it was v simple :) how i couldn't try that.. lol
thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by