Main Content

MathWorks.MATLAB.NET.Arrays.native.MWArray Class

Namespace: MathWorks.MATLAB.NET.Arrays.native

Encapsulate native MATLAB mxArray

Description

MWArray is an abstract C# class that serves as the root of the MATLAB® array class hierarchy. Its derived classes implement MATLAB data types. It encapsulates a native MATLAB mxArray and provides a managed API for accessing, formatting, and manipulating the native array.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Namespace: MathWorks.MATLAB.NET.Arrays.native

Assembly: MWArray (in MWArray.dll) Version: 2.23.1.0 (2.23.1.0)

Syntax:

[SerializableAttribute]
public class MWArray : ICloneable

Properties

expand all

Public Properties

This property is read-only.

Syntax

public MWArrayType ArrayType { get; }
The derived type of the array, specified as an MWArrayType object.

This property is read-only.

Syntax

public virtual int[] Dimensions { get; }
See size.

This property is read-only.

Syntax

public bool IsCellArray { get; }
See iscell.

This property is read-only.

Syntax

public bool IsCharArray { get; }
See ischar.

This property is read-only.

Syntax

public virtual bool IsEmpty { get; }
See isempty.

This property is read-only.

Syntax

public bool IsLogicalArray { get; }
See islogical.

This property is read-only.

Syntax

public bool IsNumericArray { get; }
See isnumeric.

This property is read-only.

Syntax

public bool IsStructArray { get; }
See isstruct.

This property is read-only.

Syntax

public int NumberofDimensions { get; }
See ndims.

This property is read-only.

Syntax

public int NumberOfElements { get; protected get}
Equivalent to prod(size(A)) for non-empty arrays. See numel.

Methods

expand all

Inheritance Hierarchy

System.Object

  • Mathworks.MATLAB.NET.Arrays.native.MWArray

    • Mathworks.MATLAB.NET.Arrays.native.MWCellArray

    • Mathworks.MATLAB.NET.Arrays.native.MWStructArray

Version History

Introduced in R2006a