Pass XY Data into function built by Builder NE

I have been trying to convert an old application to use the .net dll built by Builder NE.
The function call uses all MWArry data types. For the simple data I can do stuff like this:
Dim mwtemp As MathWorks.MATLAB.NET.Arrays.MWNumericArray
mwTemp = New MathWorks.MATLAB.NET.Arrays.MWNumericArray(myTemp)
That works fine, but I need to pass in XY Data which is a 2-dimensional array of double.
Dim mwXY As MathWorks.MATLAB.NET.Arrays.MWNumericArray
mwXY = New MathWorks.MATLAB.NET.Arrays.MWNumericArray(myXYData)
Compiles fine but give me this error:
The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWNumericArray' threw an exception.
Any ideas on how to pass a 2 dimensional array into my function?

2 件のコメント

Kaustubha Govind
Kaustubha Govind 2011 年 5 月 5 日
What datatype is myXYData exactly? Can it be converted to one of the types supported by the MWNumericArray constructors (http://www.mathworks.com/help/toolbox/dotnetbuilder/MWArrayAPI/HTML/MathWorks.MATLAB.NET.Arrays.MWNumericArrayConstructor.html)
Mark Lyday
Mark Lyday 2011 年 5 月 5 日
myXYData(,) As Double

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler SDK についてさらに検索

質問済み:

2011 年 5 月 5 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by