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 commentaires

Harsheel
Harsheel le 28 Juil 2015
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?
tel aviv university
tel aviv university le 30 Juil 2015
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.
Harsheel
Harsheel le 31 Juil 2015
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
tel aviv university
tel aviv university le 4 Août 2015
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...
Harsheel
Harsheel le 4 Août 2015
Aah, interesting. Thanks for letting us know!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Compiler SDK dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by