Main Content

MathWorks.MATLAB.NET.Arrays.native.MWStructArray Class

Namespace: MathWorks.MATLAB.NET.Arrays.native

Managed representation of MATLAB structure array

Description

MWStructArray is the managed representation of the MATLAB structure array. Like its MATLAB equivalent, it consists of field values associated with field names.

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 MWStructArray : MWArray, 
	ICloneable, IEquatable<MWStructArray>

Properties

expand all

Public Properties

This property is read-only.

Syntax

public MWArrayType ArrayType { get; }
Read only property returning the derived type of the MWArray (Inherited from MWArray.)

This property is read-only.

Syntax

public virtual int[] Dimensions { get; }

Read only property returning a native integer array containing the size of each dimension of the MWArray.(Inherited from MWArray.)

See size.

This property is read-only.

Syntax

public virtual int[] Dimensions { get; }

Read only property returning a native integer array containing the size of each dimension of the MWArray.(Inherited from MWArray.)

See size.

This property is read-only.

Syntax

publicstring[] FieldNames { get; }
Returns the field names of the MATLAB structure array as a native array of strings.

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.

Syntax

public MWArray this[
	params int[] indices
] { get; set; }
An index can be any number of integers corresponding to the array's dimensions. As with MATLAB, a single index will return the nth element in the array. NOTE: The generic array indexer supports numeric, logical, char, and cell array types. For complex numeric arrays, both the real and the imaginary components are returned.

Array indexing in this API, as in MATLAB®, is one-based rather than zero-based.

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.

This property is read-only.

Syntax

public int NumberOfElements { get; protected get}
Returns the number of fields in the MATLAB structure array.

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