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
Represents a MATLAB cell array.
Represents a MATLAB char array.
Represents a MATLAB double array.
Represents a MATLAB function array.
MATLAB function arrays are not supported in the current release.
Represents a MATLAB int16 array.
Represents a MATLAB int32 array.
Represents a MATLAB int64 array.
Represents a MATLAB int8 array.
Represents a MATLAB logical array.
Represents a MATLAB object array.
MATLAB object arrays are not supported in the current release.
Represents a MATLAB opaque array.
Represents a MATLAB single array.
Represents a MATLAB string array.
Represents a MATLAB struct array.
Represents a MATLAB uint16 array.
Represents a MATLAB uint32 array.
Represents a MATLAB uint64 array.
Represents a MATLAB uint8 array.
Represents a MATLAB empty array.
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:
|
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
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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)