Load ClassificationSVM object in standalone application (mcr)

1 view (last 30 days)
Variable 'SVMModel' originally saved as a ClassificationSVM cannot be instatiated as an object and will be read in as a uint32t.
This is the error I get when I compile my program to a standalone application. It's all fine when I run it in the Matlab envirement.
I know that the MCR probebly doesn't know the object ClassificationSVM, but is there a workaround for this problem.
Do I need to write a script that converts this class in to a struct of some sort, or is there a much better solution?
  1 Comment
Raphael DD
Raphael DD on 24 Jul 2015
I found the solution my self. You need to tell the compiler that he needs to add the class to the executable. This is done by adding:
%#function ClassificationSVM
load('SVMModel.mat');
This example is specific for ClassificationSVM but you can change is with whatever class you want I assume.

Sign in to comment.

Answers (0)

Categories

Find more on Package MATLAB Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!