public final class MWComplexity
extends java.lang.Object
implements java.io.Serializable
MWComplexity
class enumerates the MATLAB real/complex array property.
This class contains no public constructors. A set of public static MWComplexity
instances are provided, one for each of real and complex.
Example: Determining the Complexity of an Array
Determine whether matrix A is real or complex. The complexity method of MWNumericArray returns an enumeration of type MWComplexity.double AReal = 24; double AImag = 5; MWNumericArray A = new MWNumericArray(AReal, AImag); System.out.println("A is a " + A.complexity() + " matrix");When run, the example displays this output:
A is a complex matrix
Modifier and Type | Field and Description |
---|---|
static MWComplexity |
COMPLEX
Array type: complex
|
static MWComplexity |
REAL
Array type: real
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string representation of the property.
|
public static final MWComplexity REAL
public static final MWComplexity COMPLEX
© 1994-2017 The MathWorks, Inc. Patents Trademarks