| Contents | Index |
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)
The MATLAB software displays:
ans =
1
Note that isobject, which tests for MATLAB objects, returns logical 0 (false). Type:
isobject(myDate)
MATLAB displays:
ans =
0
is* | isa | isobject | javaArray | javaMethod | javaObject
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |