Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isjava

Determine if input is Java object

Syntax

tf = isjava(A)

Description

example

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

Examples

collapse all

Create an instance of the Java® Date class.

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

myDate is a Java object.

However, myDate is not a MATLAB® object.

isobject(myDate)
ans = logical
   0

Input Arguments

collapse all

Input variable, specified as any data type.

Introduced before R2006a

Was this topic helpful?