Package: com.mathworks.matlab.types
Java class to pass MATLAB struct
to
and from MATLAB
The Struct
class provides support for passing
data between MATLAB® and Java® as a MATLAB struct
. The Struct
class
implements the java.util.Map
interface.
The Struct
class is designed as an immutable
type. Attempting to change the mappings, keys, or values of the returned Struct
causes
an UnsupportedOperationException
. Calling these
methods can cause the exception: put()
, putAll()
, remove()
, entrySet()
, keySet()
,
and values()
.
For an example, see Using MATLAB Structures in Java.
Struct s = new
Struct("field1",value1,"field2",value2, ...)
creates an
instance of Struct
with the specified field names
and values.
| Returns true if this map contains a mapping for the specified key. |
| Returns true if this map maps one or more keys to the specified value. |
| Returns a |
| Compares the specified object with this map for equality. |
| Returns the value to which the specified key is mapped,
or |
| Returns the hash code value for this map. |
| Returns |
| Returns a |
| Returns the number of key-value mappings in this map. |
| Returns a |
com.mathworks.matlab.types.CellStr
| com.mathworks.matlab.types.Complex
| com.mathworks.matlab.types.HandleObject