Determine if input is Java object
tf = isjava(A)
example
tf = isjava(A) returns logical 1 (true) if object A is a Java® object. Otherwise, it returns logical 0 (false).
A
1
true
0
false
collapse all
Create an instance of the Java® Date class.
myDate = java.util.Date; isjava(myDate)
ans = logical 1
myDate is a Java object.
myDate
However, myDate is not a MATLAB® object.
isobject(myDate)
ans = logical 0
Input variable, specified as any data type.
is* | isa | isobject | javaArray | javaMethod | javaObject
is*
isa
isobject
javaArray
javaMethod
javaObject
You have a modified version of this example. Do you want to open this example with your edits?