Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I have tried to compile C code from Matlab using Matlab coder, but it turns out that Matlab functions we are using now “fitensemble” and “predict” are not supported by Matlab coder.

1 回表示 (過去 30 日間)
Hae-Jong
Hae-Jong 2014 年 1 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have tried to compile C code from Matlab using Matlab coder, but it turns out that Matlab functions we are using now “fitensemble” and “predict” are not supported by Matlab coder.
MATLA version 2013a Compiler : [1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0

回答 (2 件)

Fred Smith
Fred Smith 2014 年 1 月 17 日
For functions that do not have code generation support your options are:
  • Use a C/C++/Fortran library and use custom C code integration (coder.ceval) to bring it into MATLAB for code generation purposes.
  • Use a MATLAB Coder compliant version written in MATLAB.
  • If you don't actually need standalone code and this isn't the bottleneck you are trying to speed up, you can always call the version in MATLAB using coder.extrinsic.
There are multiple ways you might obtain such code (C or MATLAB):
  • Write it.
  • Find a preexisting version that someone else has written.
  • Pay or cajole someone into writing it for you.
  • Wait until MathWorks gets around to supporting these functions.

Walter Roberson
Walter Roberson 2014 年 1 月 15 日
Correct.
You can write the C version of the routines yourself, or you can rewrite your MATLAB code so it does not call upon those routines.
Or you can pay Mathworks a lot of money to allow those routines to be compiled. The base rule that I use in these matters is that $US 1 million will probably buy you a meeting to negotiate pricing.

この質問は閉じられています。

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by