Effacer les filtres
Effacer les filtres

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

27 vues (au cours des 30 derniers jours)
user86753 le 21 Nov 2019
Commenté : Zhihui le 14 Sep 2022
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.
Error using save_system (line 38)
Input number 3 to save_system is invalid.

Réponses (2)

Fangjun Jiang
Fangjun Jiang le 21 Nov 2019
save_system('modelT','modelT','SaveDirtyReferencedModels',true), or replace true with 'on'
  3 commentaires
Fangjun Jiang
Fangjun Jiang le 30 Déc 2019
Modifié(e) : Fangjun Jiang le 30 Déc 2019
Here is the all possible syntax
filename = save_system
filename = save_system(sys)
filename = save_system(sys,newsys)
filename = save_system(sys,newsys,Name,Value)
When Name and Value pairs are provided, a new model name has to be provided. That is the cause of the error in the OP's question.
filename = save_system(sys,newsys,Name,Value) saves the system with additional options specified by one or more Name,Value pair arguments. To use Name,Value pairs without saving to a new file, use [] for newsys.
Zhihui le 14 Sep 2022
works for me, thank you Fangjun!

Connectez-vous pour commenter.

Abdur Rosyid
Abdur Rosyid le 26 Nov 2020


En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by