MathWorks.MATLAB.NET.Arrays.MWArray Class
Namespace: MathWorks.MATLAB.NET.Arrays
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.
Properties
Public Properties
This property is read-only.
Syntax
public MWArrayType ArrayType { get; }MWArrayType
object.This property is read-only.
This property is read-only.
This property is read-only.
This property is read-only.
Syntax
public virtual bool IsDisposed { get; }This property is read-only.
This property is read-only.
This property is read-only.
This property is read-only.
This property is read-only.
Syntax
public MWArray this[
params int[] indices
] { get; set; }Array indexing in this API, as in MATLAB, is one-based rather than zero-based.
This property is read-only.
Syntax
public static long NativeGCBlockSize { get; }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.This property is read-only.
This property is read-only.
Syntax
public int NumberOfElements { get; }prod(size(A)) for non-empty arrays. See numel.Methods
Clone | Syntax public virtual Object Clone() Makes
a deep copy of an |
ConvertToNativeTypes | Syntax public static Object[] ConvertToNativeTypes( MWArray[] src, Type[] specifiedTypes ) Converts an array of |
Dispose() | Syntax publicvoidDispose() Releases
resources of the |
DisposeArray | Syntax publicstaticvoidDisposeArray(
Object_object
)This dispose method recursively frees the resources of
the |
Equals | Syntax public override bool Equals(
Objectobj
)Compares two |
Finalize | Inherited from |
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 |
MemberwiseClone | Inherited from |
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 string ToString() Returns
a formatted string representing the contents of the
|
These methods specialize standard MATLAB operators and functions for objects in this class.
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.MWArrayMathworks.MATLAB.NET.Arrays.MWCellArrayMathworks.MATLAB.NET.Arrays.MWCharArrayMathworks.MATLAB.NET.Arrays.MWIndexArrayMathworks.MATLAB.NET.Arrays.MWObjectArrayMathworks.MATLAB.NET.Arrays.MWStringArrayMathworks.MATLAB.NET.Arrays.MWStructArray
Version History
Introduced in R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)