MATLAB Answers

How to copy the content of a model to another model without closing the current model

8 views (last 30 days)
Hello,
i want to take back up of the current model without closing
save_system('model','new_model') closes the model "model".
is there any way to copy the content of the simulink model ?
Thanks,
V. Ajay Krishna

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 23 Jun 2020
  1. save_system() and then copyfile()
  2. Simulink autosave preference
  3. Simulink.BlockDiagram.copyContentsToSubsystem(), Simulink.SubSystem.copyContentsToBlockDiagram()

More Answers (0)

Categories

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!