MathWorks.MATLAB.NET.Arrays.MWStructArray Class
Namespace: MathWorks.MATLAB.NET.Arrays
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.
Properties
Public Properties
ArrayType
— Derived type of MWArray
MWArrayType
This property is read-only.
Syntax
public MWArrayType ArrayType { get; }
MWArrayType
object.
Dimensions
— Return native integer array containing size of each dimension of MWArray
positive integer
Empty
— Return writeable version of empty MWStructrray
MWStructArray
This property is read-only.
Syntax
public static MWStructArray Empty { get; }
IsCellArray
— Flag indicating if MWArray
is MWCellArray
boolean
IsCharArray
— Flag indicating if MWArray
is MWCharArray
boolean
IsDisposed
— Handle status of encapsulated MWArray
boolean
This property is read-only.
Syntax
public virtual bool IsDisposed { get; }
IsEmpty
— Flag indicating if MWArray
is empty
boolean
IsLogicalArray
— Flag indicating if MWArray
is MWLogicalArray
boolean
IsNumericArray
— Flag indicating if MWArray
is MWNumericArray
boolean
IsStringArray
— Flag indicating if MWArray
is MWStringArray
boolean
IsStructArray
— Flag indicating if MWArray
is MWStructArray
boolean
Item
— Generic MATLAB indexer returning result as MWArray
MWArray
Syntax
public MWArray this[
params int[] indices
] { get; set; }
Array indexing in this API, as in MATLAB®, is one-based rather than zero-based.
NativeGCBlockSize
— Unmanaged memory block size in bytes
positive integer
This property is read-only.
Syntax
public static long NativeGCBlockSize { get; }
NativeGCEnabled
— Native array GC enabled flag
boolean
Syntax
public static bool NativeGCEnabled { get; set; }
MWArray
class or one of its
derived types that are no longer being referenced. This includes unmanaged memory
allocated through explicit creation of MWArray
types, as well as
implicit instantiation of an MWArray
via an implicit cast.
NumberOfDimensions
— Number of dimensions in MWArray
positive integer
NumberOfElements
— Number of elements in MWArray
positive integer
This property is read-only.
Syntax
public int NumberOfElements { get; }
prod(size(A))
for non-empty arrays. See numel
.
NumberOfFields
— Number of fields in MWArray
positive integer
This property is read-only.
Syntax
public int NumberOfFields { get; }
Methods
Public Methods
Clone | Syntax public virtual Object Clone() Makes
a deep copy of an |
Dispose() | Syntax public void Dispose() Releases
resources of the |
Dispose(Boolean) | Syntax protected override void Dispose( bool disposing )
Internal dispose function |
DisposeArray | Syntax public static void DisposeArray(
Object_object
) This dispose method recursively frees the resources of
the |
Equals | Syntax public override bool Equals(
Objectobj
) Compares two |
Finalize | Inherited from |
GetField(String) | Syntax public MWArray GetField( string fieldName ) Parameters fieldName Type: System.String The field name. Return Value Type: MWArray The contents of the specified field. Returns the contents of the specified field in the structure array. |
GetField(String, Int32) | Syntax public MWArray GetField( string fieldName, int index ) Parameters fieldName Type: System.String The field name. index Type: System.Int32 The index for an array of structures. Return Value Type: MWArray The contents of the specified field. Returns the contents of the specified field in the specified structure of an array of structures. |
GetHashCode | Syntax public override int GetHashCode() Returns
the hashcode of the |
GetObjectData | Syntax public virtual void GetObjectData( SerializationInfoinfo, StreamingContextcontext )
Implements ISerializable.GetObjectData(SerializationInfo, StreamingContext) Serialization function. The arguments for this function are supplied by the .NET serialization infrastructure. |
GetType | Inherited from |
IsField | Syntax public virtual Array ToArray() Parameters fieldName Type: System.String The field name. Return Value Type: Boolean true if the field name is the name of a field in the structure array. Returns true if the specified field is the name of a field in the structure array. |
MemberwiseClone | Inherited from |
RemoveField | Syntax public MWStructArray RemoveField( string fieldName ) Parameters fieldName Type: System.String The field name. Return Value Type: MWArray The new structure array. Removes the specified field from the structure array. |
SetField | Syntax public void SetField( stringfieldName, MWArrayfieldValue ) Parameters fieldName Type: System.String The field name. fieldValue Type: Mathworks.MATLAB.NET.Arrays.MWArray The field value. Sets the contents of the specified field in the structure array. |
ToArray | Syntax public virtual Array ToArray() Returns
a native .NET array containing a copy of data in the underlying MATLAB array. The
returned array has the same dimensionality as the underlying MATLAB array. The
elements of the returned array are converted according to default conversion
rules. If the underlying MATLAB array is a complex numeric type,
|
ToString | Syntax public virtual Array ToArray() Returns
a formatted string representing the contents of the
|
Specialized Operators and Functions
Implicit(Double to MWArray) | Implicit cast from native double scalar value to
|
Implicit(String to MWArray) | Implicit cast from native character string to
|
Inheritance Hierarchy
System.Object
Mathworks.MATLAB.NET.Arrays.MWArray
Mathworks.MATLAB.NET.Arrays.MWCellArray
Mathworks.MATLAB.NET.Arrays.MWCharArray
Mathworks.MATLAB.NET.Arrays.MWIndexArray
Mathworks.MATLAB.NET.Arrays.MWObjectArray
Mathworks.MATLAB.NET.Arrays.MWStringArray
Mathworks.MATLAB.NET.Arrays.MWStructArray
Version History
Introduced in R2006a
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)