Generate code from .rtw file

3 次查看(过去 30 天)
Vit Valek
Vit Valek 2019-7-25
Hello,
I have file .rtw from model. Is possible to generate code from them or I must generate code only from model (Build Model)?
Thanks,
Vit

回答(1 个)

Abhilash Padma
Abhilash Padma 2019-7-29
Hi,
Yes, it is possible to generate code from .rtw file. You can use the rtwbuild() function and pass the name of the rtw file as an argument to this function to generate code.
  5 个评论
Nick Sarnie
Nick Sarnie 2019-8-10
编辑:Nick Sarnie 2019-8-15
Hi Vit,
The RTW file is not sufficient for complete code generation. The RTW file contains information about the model's properties, settings, and modeling style, but does not contain any algorithm or block code. The TLC compiler combines information in the RTW file with the algorithm code in TLC files to produce the final code.
Thanks,
Nick
Vit Valek
Vit Valek 2019-8-12
Hi Nick,
Thank you for your answer!
Vit

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by