generating matlab code to reproduce simulink model

2 ビュー (過去 30 日間)
David
David 2013 年 3 月 22 日
Hello,
I have a simulink model I want to expand. Instead on doing it by multiple clicks I would like to create it by using matlab code. (add_block etc)
Does anyone know if it is possible to generate the matlab code for reproducing a simulink model as the Generate code... command do in any matlab figure ?
Thanks in advance,
David

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 22 日
編集済み: Azzi Abdelmalek 2013 年 3 月 22 日
Use
  1. new_system
  2. open_system
  3. add_block
  4. add_line
  5. set_param
Look at this answer

その他の回答 (1 件)

David
David 2013 年 3 月 22 日
Thank you Azzi.
Is this possible to generate this code automatically so I do not have to recreate my existing model ?
David
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2013 年 3 月 22 日
David: I don't believe such an automated utility currently exists.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by