Main Content

com.mathworks.toolbox.javabuilder.MWLogicalArray Class

Namespace: com.mathworks.toolbox.javabuilder

Java class to manage MATLAB logical arrays

Description

Declaration

public class MWLogicalArray extends MWArray

The MWLogicalArray class manages a native MATLAB logical array

Implemented Interfaces: MWComponentOption, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

Creation

Constructors

MWLogicalArray()

Creates an empty logical array.

MWLogicalArray(boolean val)

Constructs a new scalar logical array that represents the primitive boolean argument.

MWLogicalArray(byte val)

Constructs a new scalar logical array that represents the primitive byte argument.

MWLogicalArray(double val)

Constructs a new scalar logical array that represents the primitive double argument.

MWLogicalArray(float val)

Constructs a new scalar logical array that represents the primitive float argument.

MWLogicalArray(int val)

Constructs a new scalar logical array that represents the primitive int argument.

MWLogicalArray(long val)

Constructs a new scalar logical array that represents the primitive long argument.

MWLogicalArray(java.lang.Object val)

Constructs a logical array that represents the Object argument.

MWLogicalArray(short val)

Constructs a new scalar logical array that represents the primitive short argument.

Properties

expand all

Public Properties

A convenient, efficient, and consistent way to represent an empty array as follows:

public static final MWArray EMPTY_ARRAY

Methods

expand all

Version History

Introduced in R2006a