isjava - Determine if input is Java object - MATLAB (original) (raw)
Main Content
Determine if input is Java object
Syntax
Description
tf = isjava([A](#btnmtqo-1-A))
returns logical 1
(true
) if object A
is a Java® object. Otherwise, it returns logical 0
(false
).
Examples
Create an instance of the Java® Date class.
myDate = java.util.Date; isjava(myDate)
myDate
is a Java object.
However, myDate
is not a MATLAB® object.
Input Arguments
Input variable, specified as any data type.
Extended Capabilities
Thread-Based Environment
Run code in the background using MATLAB® backgroundPool
or accelerate code with Parallel Computing Toolbox™ ThreadPool
.
Version History
Introduced before R2006a