replacement of for loop

1 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by