In MATLAB, I use a couple of java routines that I wrote to interact with the MyQSL database. One routine returns a boolean
result <1x1 java.lang.Boolean> >> result result = true
When I use it in a conditional expression, I get an error message.
>> if result, disp('result is true') end ??? Conversion to logical from java.lang.Boolean is not possible.
Is there a way to use the java boolean class as a MATLAB boolean type? Or do I need to resort to returning integer values ββfrom my java routines?
java mysql boolean matlab
Adrian
source share