matlab compiler to .Net dll

Hello, I am using matlab 2015a compiler to create a .NET dll. It seems that the "predict" command used in the .m file is decodeed from the 'System Identification Toolbox' rather than the 'Statistics and Machine learning Toolbox' in the dll created. I have tried to exclude the "ident" files from the matlab path, but it was in vain. Any thoughts? Thanks!

5 Comments

Does the following work? It clears the matlabpath and adds only stats toolbox to the search path.
>> mcc -m yourMainFile.m -N -p stats
How did you figure that the "predict" command from ident was being used rather than from stats? Do you get any errors?
Unfortunatly, it does not work. Now it simply does not recognize the predict command. Do you have another idea? I tried attaching the CompactClassificationSVM (the "predict" command parent) but with no success. I understood the problem because of an error that occurred doing an attemp to run the DLL in C#. The error refered to an exception in the identification toolbox.
Does the MATLAB file upon execution pick up the "predict" file from stats? Also, do you have a license for the stats toolbox:
>>license('test','stats')
>>license('checkout','stats')
If the MATLAB file runs correctly and the 2 commands give the correct answer, I'd contact MathWorks Technical Support
Thank you! It seems that what had to be done is to call "predict" as a comand in the SVM model object as such: SVMModel.predict . I used predict(SVMModel,data) first...
Aah, interesting. Thanks for letting us know!

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Asked:

on 28 Jul 2015

Commented:

on 4 Aug 2015

Community Treasure Hunt

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

Start Hunting!