MATLAB Answers

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

조회 수: 27(최근 30일)
user86753 21 Nov 2019
Edited: Fangjun Jiang 30 Dec 2019 15:49
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.

  댓글 수: 0

로그인 to comment.

답변 수 (1)

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

  댓글 수: 2

Pavel Savinkov
Pavel Savinkov 30 Dec 2019 10:13
Before you are going to answer on the questions, just try what you are going to propose.
The way which you propose doesn't work and it makes some huge errors in your project folder by duplicating systems.
Fangjun Jiang
Fangjun Jiang 30 Dec 2019 15:46
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.

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.





Translated by