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

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 日
Isn't just Part2_S11 & Part2_S12 & Part2_S22 what you want to do? What is the purpose of AND(...). Do you mean and(...) and if so then it will need two arguments, not just the one (the result of Part2_S11 & Part2_S12 & Part2_S22) that it is operating on in your code
Stephen23
Stephen23 2018 年 3 月 11 日
編集済み: Stephen23 2018 年 3 月 11 日
AND( Part2_S11 & Part2_S12 & Part2_S22 )
I cant see this syntax in the and documentation. Did you read the and documentation?
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 件)

タグ

質問済み:

2018 年 3 月 11 日

コメント済み:

2018 年 3 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by