Simulink code generation from command line
이전 댓글 표시
Is there a way to run the C code generation command (of Simulink model) from matlab script instead of clicking on the "Generate Code" button?
채택된 답변
추가 답변 (1개)
Manas
2023년 6월 12일
Hello Hass,
You can use the slbuild function to generate the C code as follows:-
modelName = 'your_model'; % Replace 'your_model' with the name of your Simulink model
% Build the model and generate code
slbuild(modelName);
For More info you can refer to this documentation:
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!