- For Code Generation from MATLAB Code, you would need MATLAB Coder and Embedded Coder.
- For Code Generation using SIMULINK Models, you would need MATLAB Coder, SIMULINK Coder and Embedded Coder.For information on how you could automatically generate C/C++ code, refer to the following links Matlab Coder Conversion to C
How to generate c/c++ code?
조회 수: 2 (최근 30일)
이전 댓글 표시
Using Matlab R2014a and Matlab coder, I'm trying to generate c or c++ code automatically from Matlab-code. In Coder, I've selected as output type: "C/C++ Dynamic Library", and enabled the option "generate code only". Building does not succeed, resulting in the message "Project ... requires an Embedded Coder license". Do I really need to also buy the toolbox "Embedded Coder"?
Above error message also appears if you try to generate code for the standard Sobel-example"
coderdemo_setup('coderdemo_edge_detection');
codegen -config coder.config('lib') sobel
댓글 수: 0
채택된 답변
Harsha Medikonda
2014년 8월 5일
댓글 수: 1
Rick Rosson
2014년 8월 14일
Embedded Coder is not required for either MATLAB Coder or Simulink Coder. It is an optional add-on that provides additional features and capabilities. For certain applications and targets, Embedded Coder is recommended, but not required.
추가 답변 (1개)
Fred Smith
2014년 8월 14일
You do not need Embedded Coder for any of the activities you mention above. Embedded Coder is an add-on the enriches MATLAB Coder with additional capabilities. It is not needed for the base functionality.
The errors you mention indicate that your system believes Embedded Coder is installed, and is trying to use the license but the license checkout is failing.
You can workaround this by using coder.config(<your usual arguments here>,'ecoder',false). In the App, open the settings dialog and in the All Settings tab disable "Use Embedded Coder Features".
It would be great to understand what is special about your system that is causing this to happen. Are you using the final R2014a image or the prerelease? Did you install Embedded Coder at some time? Anything unusual would be a helpful clue.
Thanks,
Fred
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!