What is the correct syntax for save_system for SaveDirtyR​eferencedM​odels?

57 views (last 30 days)
I have reference models inside 'modelT', I am trying to save the top level model and all changes inside the reference models but I get the error below. I have tried also using 'on' as input number 3.
save_system('modelT','SaveDirtyReferencedModels','true')
Error using save_system (line 38)
Input number 3 to save_system is invalid.

Answers (2)

Fangjun Jiang
Fangjun Jiang on 21 Nov 2019
save_system('modelT','modelT','SaveDirtyReferencedModels',true), or replace true with 'on'
  3 Comments

Sign in to comment.


Abdur Rosyid
Abdur Rosyid on 26 Nov 2020
add
new_system('modelT')
or
new_system('modelT','SaveDirtyReferencedModels','true')

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!