Run a compilation of mdf file from Matlab

Hello,
Is it possible to start the compilation of a simulink model since Matlab command Window? If yes, is it possible to specify some parameters for the compilation (like System target file)?
My wish: create a .m file to automate two compilations of a specific mdl file, with two different System target files (tlc). Today I've have to manually change the tlc and start the compilations

 채택된 답변

TAB
TAB 2012년 6월 20일

1 개 추천

Assuming that from complication of model, you mean code generation or building a model.
You can change the System target file from command line or from m-file using command
>> set_param('ModelName','SystemTargetFile','TargetName');
% where TargetName could be ert.tlc, grt.tlc etc.
You can start building the model with command
>> rtwbuild('ModelName');

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2012년 6월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by