Simulink.BlockDiagram.saveActiveConfigSet
Save active configuration set of model
Description
Examples
Save a Configuration Set
Save the configuration set from the sldemo_fuelsys
model as a ConfigSet
object in the file
my_config_set.mat
.
Open the Model Fault-Tolerant Fuel Control System example model
sldemo_fuelsys
.
openExample('simulink_automotive/ModelingAFaultTolerantFuelControlSystemExample')
sldemo_fuelsys
Save the active configuration set.
Simulink.BlockDiagram.saveActiveConfigSet('sldemo_fuelsys','my_config_set.mat')
Input Arguments
model
— Model using configuration set
character vector | string scalar
Name or handle of the model that uses the configuration set that you want to save, specified as a character vector or string scalar.
Example: 'my_model'
file
— Name of file
character vector | string scalar
Name of the file to save the configuration set, specified as a character vector or
string scalar. If you specify an .m
extension, the file contains a
function that creates a configuration set object. If you specify a
.mat
extension, the file contains a configuration set object. If
you do not provide a file extension, the active configuration set is saved to a file
with a .m
extension. Do not specify filename
to
be the same as a model name; otherwise, the software cannot determine which file
contains the configuration set object when loading the file.
Note
If you specify a .mat
extension when you save the active
configuration set, all of the parameters are
preserved. If you specify a .m
extension, the
.m
file does not include hidden or disabled parameters.
Example: 'configset.m'
Version History
Introduced in R2010b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)