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

1 visualización (últimos 30 días)
Nouf Harbi
Nouf Harbi el 11 de Mzo. de 2018
Comentada: Walter Roberson el 12 de Mzo. de 2018
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 comentarios
David Fletcher
David Fletcher el 11 de Mzo. de 2018
Editada: David Fletcher el 11 de Mzo. de 2018
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 el 12 de Mzo. de 2018
Your arrays appear have at least one complex valued component. It does not make sense to to AND them.

Iniciar sesión para comentar.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 11 de Mzo. de 2018
use low case, "and"

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by