MATLAB: Error message: “undefined function for input arguments of type ‘logical’ “

undefined function for input arguments of type 'logical'

What does the error message "undefined function for input arguments of type 'logical' " indicate?

Best Answer

It indicates that there is no function by the name that you called for inputs of the logical type. So either you called a function that does exist, but you called it with an input that it didn't expect, or there just is no such function.