Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

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)

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

See Also

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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