Quantcast

Documentation Center

  • Trial Software
  • Product Updates

isjava

Determine if input is Java object

Syntax

Description

example

tf = isjava(A) returns logical 1 (true) if object A is a Java® object. Otherwise, it returns logical 0 (false).

Examples

expand all

Test if java.util.Date Is Java Object

Create an instance of the Java Date class.

myDate = java.util.Date;
isjava(myDate)
ans =

     1

myDate is a Java object.

However, myDate is not a MATLAB® object.

isobject(myDate)
ans =

     0

See Also

| | | | |

Was this topic helpful?