Main Content

com.mathworks.toolbox.javabuilder.MWStringArray Class

Namespace: com.mathworks.toolbox.javabuilder

Java class to manage MATLAB string arrays

Description

Declaration

public class MWStringArray extends MWArray

The MWStringArray class manages a native MATLAB string array

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

Creation

MWStringArray()

Creates an empty string array.

MWStringArray(int[] dims)

Creates an n-dimentional string array with all elements in default value.

MWStringArray(java.lang.String val)

Creates a one-element string array that represents the java string argument.

MWStringArray(java.lang.String[] vals)

Creates a string array that represents the java String[] 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

Examples

collapse all

Version History

Introduced in R2006a