Generate MATLAB Code from Control System Tuner for
Command-Line Tuning
You can generate a MATLAB script in Control System Tuner for tuning a control system at
the command line. Generated scripts are useful when you want to programmatically
reproduce a result you obtained interactively. A generated MATLAB script also enables
you to programmatically perform multiple tuning operations with variations in tuning
goals, system parameters, or model conditions such as operating point.
TipYou can also save a Control System Tuner session to reproduce within Control
System Tuner. To do so, in the Control System tab, click Save Session.
To generate a MATLAB script in Control System Tuner, in the Tuning tab, click Tune.
Select Script with current values.
The MATLAB Editor displays the generated script, which script reproduces
programmatically the current tuning configuration of Control System Tuner.
Generate MATLAB Code from Control System Tuner for Command-Line Tuning