replace entire mdl file from app designer

조회 수: 1(최근 30일)
Bhisma Adhikari
Bhisma Adhikari 2020년 1월 27일
댓글: Bhisma Adhikari 2020년 1월 31일
My Simulink project (saved as mymodel.mdl) is opened in the Simulink window. I need to replace mymodel.mdl's entire content with the content from some other mdl file when I click a button in an app designed in app-designer (saved as myapp.mlapp). How do I do this?

채택된 답변

Ganesh Regoti
Ganesh Regoti 2020년 1월 31일
You can copy the contents from one Simulink model to another through appdesigner using subsystem commands. Here is the link you can refer to
Here is the small example to copy contents from one model to a subsystem of other model.
add_block('built-in/Subsystem', 'new_model_with_vdp/vdp_subsystem')
('vdp', 'new_model_with_vdp/vdp_subsystem')
Hope this helps!
  댓글 수: 1
Bhisma Adhikari
Bhisma Adhikari 2020년 1월 31일
That was very helpful. Thank you, Ganesh!

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by