Main Content

com.mathworks.extern.java.MWArray Class

Namespace: com.mathworks.extern.java
Superclasses:

Abstract Java base class to manage array types in MATLAB

Description

Declaration

public abstract class MWArray extends java.lang.Object implements java.io.Serializable

The MWArray class, part of the com.mathworks.extern.java package, serves as the foundational abstract class for native MATLAB array types, specifically struct and cell arrays. Extending from Java's core Object class and implementing the Serializable interface, it ensures that objects of its kind can be serialized into a stream of bytes. Notable direct subclasses include MWCellArray and MWStructArray, which specialize the behavior and characteristics of this base class to align more closely with MATLAB's native cell and struct array data types, respectively.

Implemented Interfaces: java.io.Serializable

Direct Known Subclasses: MWCellArray, MWStructArray

Class Attributes

Abstract
true

Creation

Constructors

protected  MWArray() 
protected  MWArray(int[] inDims) 
protected  MWArray(int rows, int cols)

These constructors are protected, which means you can't use them directly from outside classes unless you're extending the MWArray class. If you're trying to create instances of MWArray or its subclasses, you'll typically use public static methods or constructors provided by those subclasses.

Properties

expand all

Public Properties

The flatArray field provides a linear, or "flattened," representation of multi-dimensional array data. It consists of an array of objects that are protected.

Methods

expand all

Examples

More About

expand all

Inheritance Hierarchy

Version History

Introduced in R2006a