error using codegen - 2021b
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2021-11-25
Question: did you upgrade versions in the last two days? You were using an earlier MATLAB version in your Trading Toolbox question?
采纳的回答
Walter Roberson
2021-11-25
you need to have MATLAB Coder installed and licensed.
Note: MATLAB Coder is not available for Student licences.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!