MWarray conversion to vb.net data Types

조회 수: 1 (최근 30일)
Abdullah Yaquot
Abdullah Yaquot 2019년 8월 4일
I tried to solve this and did not get it, the problem that I have a MatLab DLL file with a function looks like this
[tmin, mawp,sigma,tmin_c,tmin_l,segma_c,segma_l] = cylindrical(a,b,c,d,e,f)
I did reference the dll and the mwarray dll, when I call the MatLab's obj to the function it returns nothing, and if I use an index to map the array it gives an invalid index error. I am sorry if I didn't make myself clear, but I hope the code will.
This is VB.NET program that uses Matlab function to calculate some values, I tried to make the output as an array using ToArray function but it didn't work, Also in the mathwork documentation they talked about that conversion as in vb you need to use op_implicit
function but I did not figure it out, I tried so many things but I am stuck here guys, appreciate your help.
'after importing dlls
Dim matlab As MAWP_CYL = New MAWP_CYL()
'this to matlab obj
Dim result = matlab.Cylindrical(1,1,1,1,1,1).ToArray()
'using any numbers for test
'here result have nothing when debugging,
'the result has nothing, not an array or any form of lists.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deploy to .NET Applications Using MWArray API에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by