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

4 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by