Problem to call fitcecoc with Matlab runtime

I have compiled a C# dll with matlab compiler, when I execute on the server using matlab runtime, I have an error: "
Undefined function or variable 'ClassificationECOC'. Error in classreg.learning.FitTemplate/fit (line 251)
"
The original code for this error is the call of the "fitcecoc"
"
baseMLL baseML = (:, F);
FeatureML = Feature (:, F);
model = fitcecoc (baseMLL, resultML);
"
do you know why ?

回答 (2 件)

Jérôme Dondeyne
Jérôme Dondeyne 2016 年 9 月 2 日

0 投票

Up !
Nobody can help me ?

1 件のコメント

Amir
Amir 2023 年 11 月 5 日
shet i ran into the same problem and found out nobody help u ..anyway found a solution?

サインインしてコメントする。

Steven Lord
Steven Lord 2023 年 11 月 5 日

0 投票

If you are attempting to compile code using MATLAB Compiler that calls load to load an object from a MAT-file and there is no indication in the code itself that MATLAB Compiler needs to package the code for that class, the dependency analyzer may not be able to detect that it needs to include the definition of the class. In this case use one of the workarounds in the "Fixing Callback Problems: Missing Functions" section of this documentation page, as this workflow is described by the Tip in that section of that documentation page.

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2016 年 8 月 29 日

回答済み:

2023 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by