Borrar filtros
Borrar filtros

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

50 visualizaciones (últimos 30 días)
user86753
user86753 el 21 de Nov. de 2019
Comentada: Zhihui el 14 de Sept. de 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.
save_system('modelT','SaveDirtyReferencedModels','true')
Error using save_system (line 38)
Input number 3 to save_system is invalid.

Respuestas (2)

Fangjun Jiang
Fangjun Jiang el 21 de Nov. de 2019
save_system('modelT','modelT','SaveDirtyReferencedModels',true), or replace true with 'on'
  3 comentarios
Fangjun Jiang
Fangjun Jiang el 30 de Dic. de 2019
Editada: Fangjun Jiang el 30 de Dic. de 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.

Iniciar sesión para comentar.


Abdur Rosyid
Abdur Rosyid el 26 de Nov. de 2020
add
new_system('modelT')
or
new_system('modelT','SaveDirtyReferencedModels','true')

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by