error ' Undefined function 'AND' for input arguments of type 'logical'.''

1 次查看(过去 30 天)
i am doing a threshold on three pictures and afterwards applying AND logical operator between them but im getting this error .. this is the line find = AND( Part2_S11 & Part2_S12 & Part2_S22 ) ;
  4 个评论
David Fletcher
David Fletcher 2018-3-11
编辑:David Fletcher 2018-3-11
Isnt that what you were doing with Part2_S11 & Part2_S12 & Part2_S22. When written the and function is lowercase, not uppercase, and it operates on two arguments, not three and not one. Assuming all the matrices are logicals of the same size doesn't this do what you want?
find = Part2_S11 & Part2_S12 & Part2_S22
Walter Roberson
Walter Roberson 2018-3-12
Your arrays appear have at least one complex valued component. It does not make sense to to AND them.

请先登录,再进行评论。

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2018-3-11
use low case, "and"

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by