VB.NET & Matlab .dll

조회 수: 12 (최근 30일)
Christophe
Christophe 2014년 2월 28일
댓글: Christophe 2014년 2월 28일
Hello,
I'm writting here because I have a proble that I cannot solve by myself...
I developped matlab functions that I wanted to transfer to VB.Net through a .dll. I successfully compiled the .dll with Matlab compiler and imported it to VB.NET.
But now I'm trying to use it and i definitly don't understand why it doesn't wor. That is what I writted on VB.net
Imports StatFeaturesExtractor
sub*****
Dim Extractor As StatFeaturesExtractor.Extractor
Dim MatlabTypePath As MathWorks.MATLAB.NET.Arrays.MWArray
MatlabTypePath = New MathWorks.MATLAB.NET.Arrays.MWCharArray(path) '==> this line already bug...
Dim Result As MathWorks.MATLAB.NET.Arrays.MWArray
Result = Extractor.StatFeatureExtractor(MatlabTypePath)
end sub
for your comprehention, StatFeatureExtractor is a simlpe to use (theorically) as the only argument is a string (a path) and the result consist of a 8x1 array of double
thank for your help
  댓글 수: 2
Friedrich
Friedrich 2014년 2월 28일
What is your variable path? What does it contain? Which data type does it have? What error do you get? What do you mean with "this line already bug"?
Christophe
Christophe 2014년 2월 28일
Path is a string it contains a path to my hard drive the error I have is " Une exception a été levée par l'initialiseur de type pour 'MathWorks.MATLAB.NET.Arrays.MWArray'. "

댓글을 달려면 로그인하십시오.

답변 (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