generating matlab code to reproduce simulink model

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일

0 개 추천

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일

0 개 추천

Thank you Azzi.
Is this possible to generate this code automatically so I do not have to recreate my existing model ?
David

댓글 수: 1

David: I don't believe such an automated utility currently exists.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by