com.mathworks.toolbox.javabuilder.MWClassID Class
Namespace: com.mathworks.toolbox.javabuilder
Java class to enumerate all MATLAB array types
Description
Declaration
public class MWClassID extends java.lang.Object implements java.io.Serializable
The MWClassID class enumerates all MATLAB® array types. This class contains no public constructors. A set of public static MWClassID instances are provided, one for each MATLAB array type.
Implemented Interfaces:
java.io.Serializable
Creation
Constructors
This class contains no public constructors.
Properties
Public Properties
CELL
— MATLAB cell array type
public static final
Represents a MATLAB cell array.
CHAR
— MATLAB char array type
public static final
Represents a MATLAB char array.
DOUBLE
— MATLAB double array type
public static final
Represents a MATLAB double array.
FUNCTION
— MATLAB function array type
public static final
Represents a MATLAB function array.
MATLAB function arrays are not supported in the current release.
INT16
— MATLAB int16 array type
public static final
Represents a MATLAB int16 array.
INT32
— MATLAB int32 array type
public static final
Represents a MATLAB int32 array.
INT64
— MATLAB int64 array type
public static final
Represents a MATLAB int64 array.
INT8
— MATLAB int8 array type
public static final
Represents a MATLAB int8 array.
LOGICAL
— MATLAB logical array type
public static final
Represents a MATLAB logical array.
OBJECT
— MATLAB object array type
public static final
Represents a MATLAB object array.
MATLAB object arrays are not supported in the current release.
OPAQUE
— MATLAB opaque array type
public static final
Represents a MATLAB opaque array.
SINGLE
— MATLAB single array type
public static final
Represents a MATLAB single array.
STRING
— MATLAB string array type
public static final
Represents a MATLAB string array.
STRUCT
— MATLAB struct array type
public static final
Represents a MATLAB struct array.
UINT16
— MATLAB uint16 array type
public static final
Represents a MATLAB uint16 array.
UINT32
— MATLAB uint32 array type
public static final
Represents a MATLAB uint32 array.
UINT64
— MATLAB uint64 array type
public static final
Represents a MATLAB uint64 array.
UINT8
— MATLAB uint8 array type
public static final
Represents a MATLAB uint8 array.
UNKNOWN
— MATLAB empty array type
public static final
Represents a MATLAB empty array.
Methods
Public Methods
equals |
Indicates whether some other MWClassID is equal to this one. Overrides:
Returns:
|
getSize |
Returns the size in bytes of an array element of this type. Returns: Size in bytes of an array element of this type. |
hashCode |
Returns a hash code value for the type. Overrides:
Returns: Hash code value for the type. |
isNumeric |
Tests if this type is numeric. Returns:
|
readResolve |
Called during serialization. Returns the element from the VALUES array for the ordinal of this instance. Returns: element from the VALUES array for the ordinal of this instance. Throws:
|
toString |
Returns a string representation of the type. Overrides:
|
Inherited Methods
Methods inherited from class java.lang.Object
.
clone |
Used to create and return a copy of the object it is called on. This method is protected and provides a shallow copy, meaning it copies the values of an object's fields directly. For fields that are objects, it copies references, not the objects themselves. |
finalize |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
getClass |
Returns the runtime class of this Object. |
notify |
|
notifyAll |
Wakes up all threads that are waiting on this object's monitor. |
wait |
Causes
the current thread to wait until another thread invokes the
|
Examples
Specifying an MWClassID Valu
Construct a scalar numeric array of type MWClassID.INT16:
double AReal = 24; MWNumericArray A = new MWNumericArray(AReal, MWClassID.INT16); System.out.println("Array A of type " + A.classID() + " = \n" + A);
Array A of type int16 = 24
Version History
Introduced in R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)