MATLAB: Generating matlab code to reproduce simulink model

code generationmodel buildersimulink

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

Best Answer

Use
  1. new_system
  2. open_system
  3. add_block
  4. add_line
  5. set_param
Look at this answer
Related Question