Generate MATLAB Code for Operating Point
Configuration
This topic shows how to generate MATLAB code for operating point configuration using
the Steady State Manager or Linear Analysis Tool. You can generate MATLAB code to
programmatically reproduce a result that you obtained interactively.
You can also modify the script to compute multiple operating points with systematic
variations in operating point specifications (batch computing). For more information, see
“Batch Compute Steady-State Operating Points Reusing Generated MATLAB Code” on
page 1-105.
Generate MATLAB Code from Steady State Manager
When computing operating points using the Steady State Manager, you can generate a
MATLAB script or a live script for configuring operating point specifications and
computing an operating point. To do so:
(^1) To create a specification, in the Steady State Manager, on the Steady State tab,
click Trim Specification.
(^2) In the corresponding specification document, configure the operating point state,
input, and output specifications. For an example, see “Compute Operating Points
from Specifications Using Steady State Manager” on page 1-23.
(^3) To specify optimization search settings, on the Specification tab, click Trim
Options. For more information, see “Change Operating Point Search Optimization
Settings” on page 1-69.
(^4) To generate code that creates an operating point using your specifications and search
options, click Trim , and select a code generation option.
Generate MATLAB Code for Operating Point Configuration