Help CenterHelp Center
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.
Introduced before R2006a
isobject | javaArray | javaMethod | javaObject | isa
isobject
javaArray
javaMethod
javaObject
isa
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office