isjava - Determine whether input is Sun™ Java™ object

Syntax

tf = isjava(A)

Description

tf = isjava(A) returns logical 1 (true) if A is a Java object, and logical 0 (false) otherwise.

Examples

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

See Also

isobject, javaArray, javaMethod, javaObject, isa, is*

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS