Specify root folders for files generated by diagram updates and model builds
returns a handle to an instance of the cfg
= Simulink.fileGenControl('getConfig')Simulink.FileGenConfig
object, which
contains the current values of these file generation control parameters:
CacheFolder
– Specifies the root folder for model build artifacts
that are used for simulation, including Simulink® cache files.
CodeGenFolder
– Specifies the root folder for code generation
files.
CodeGenFolderStructure
– Controls the folder structure within the
code generation folder.
To get or set the parameter values, use the
Simulink.FileGenConfig
object.
These Simulink® preferences determine the initial parameter values for the MATLAB® session:
Simulation cache folder –
CacheFolder
Code generation folder –
CodeGenFolder
Code generation folder
structure – CodeGenFolderStructure
Simulink.fileGenControl(
performs an action that uses the file generation control parameters of the current MATLAB session. Specify additional options with one or more
Action
,Name,Value
)name,value
pair arguments.