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 (Simulink) –
CacheFolder
Code generation folder (Simulink) –
CodeGenFolder
Code generation folder
structure (Simulink) – 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.
Code generation folder structure | Code generation folder | Simulation cache folder