Main Content

com.mathworks.toolbox.javabuilder.MWComplexity Class

Namespace: com.mathworks.toolbox.javabuilder

Java class to enumerate MATLAB array complexity properties

Description

Declaration

public final class MWComplexity 
extends java.lang.Object 
implements java.io.Serializable

The 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

Implemented Interfaces: java.io.Serializable

Creation

Constructors

This class contains no public constructors.

Properties

expand all

Public Properties

A way to represent complex numbers.

A way to represent real numbers.

Methods

expand all

Examples

collapse all

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");
A is a complex matrix

Version History

Introduced in R2006a