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

조회 수: 1 (최근 30일)
Nouf Harbi
Nouf Harbi 2018년 3월 11일
댓글: Walter Roberson 2018년 3월 12일
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