| MATLAB Function Reference | ![]() |
tf = isjava(A)
tf = isjava(A) returns logical 1 (true) if A is a Java object, and logical 0 (false) otherwise.
Create an instance of the Java Date class and isjava indicates that it is a Java object.
myDate = java.util.Date; isjava(myDate)
MATLAB® displays:
ans =
1
Note that isobject, which tests for MATLAB objects, returns logical 0 (false). Type:
isobject(myDate)
MATLAB displays:
ans =
0
isobject, javaArray, javaMethod, javaObject, isa, is*
![]() | isinterface | iskeyword | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |