error using codegen - 2021b

5 Ansichten (letzte 30 Tage)
philip curran
philip curran am 25 Nov. 2021
Kommentiert: Walter Roberson am 25 Nov. 2021
having difficulty turning my trained AC agent into C or C++ code, i have generated a policy function for the agent. here is the code used and the error produced:
cfg = coder.config('mex');
cfg.TargetLang = 'C++';
cfg.DeepLearningConfig = coder.DeepLearningConfig('none');
argstr = '{ones(1,19,1)}';
codegen('-config','cfg','evaluatePolicy','-args',argstr,'-report');
Undefined function 'codegen' for input arguments of type 'char'.
Error in workflow (line 153)
codegen('-config','cfg','evaluatePolicy','-args',argstr,'-report');
i am using matlab 2021b, any help would be greatley appreciated.
  1 Kommentar
Walter Roberson
Walter Roberson am 25 Nov. 2021
Question: did you upgrade versions in the last two days? You were using an earlier MATLAB version in your Trading Toolbox question?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Nov. 2021
you need to have MATLAB Coder installed and licensed.
Note: MATLAB Coder is not available for Student licences.
  1 Kommentar
philip curran
philip curran am 25 Nov. 2021
thanks walter, that's fixed the issue

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by