Borrar filtros
Borrar filtros

return Nothing from matlab dll in vb.net

2 visualizaciones (últimos 30 días)
Abdullah Yaquot
Abdullah Yaquot el 28 de Jul. de 2019
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 uses Matlab function to calculate some values,
I tried to make the output as an array using ToArray function
but it didn't work I tried so many things but I am stuck here guys,
appreciate your help
code
===========
'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
'here result have nothing when debugging,
=============================================
the result has nothing, not an array or any form of lists.

Respuestas (0)

Categorías

Más información sobre Deploy to .NET Applications Using MWArray API en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by