Main Content

com.mathworks.toolbox.javabuilder.MWStructArray Class

Namespace: com.mathworks.toolbox.javabuilder

Java class to manage MATLAB struct arrays

Description

Declaration

public class MWStructArray extends MWArray

The MWStructArray class manages a native MATLAB struct array.

Creation

MWStructArray()

Creates an empty struct array.

MWStructArray(int[] dims, java.lang.String[] fieldnames)

Constructs a new struct array with the specified dimensions and field names.

MWStructArray(int rows, int cols, java.lang.String[] fieldnames)

Constructs a new struct matrix with the specified number of rows and columns and field names.

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

Examples

collapse all

Version History

Introduced in R2006a

Go to top of page