| Simulink® Control Design™ | |
| On this page… |
|---|
To export linearization results and the corresponding operating points, right-click the results node, Model, under the Linearization Task node and select Export from the menu. In the Export To Workspace dialog box, choose new names for the linearized model and operating point, or accept the defaults, and then click OK.

The MATLAB workspace now contains two new objects, Model_op and Model_sys. To see this, type
who
at the MATLAB prompt. This returns
Your variables are: L Model_sys beta m Model_op R g
Alternatively, you can export the results to the MATLAB workspace by selecting File > Export from the LTI Viewer window or by clicking the Export to Workspace button at the bottom of the Linearization Summary pane within the Model node.
By right-clicking the results node, Model, you can also delete results.
To export a compensator design to the MATLAB workspace:
Select File > Export from the SISO Design Tool window.
In the SISO Tool Export dialog box, use the Select design list to choose the design you want to export.
In the list, select the compensators to export, and then click either Export to Workspace or Export to Disk.

After creating operating points, you can use the Export To Workspace dialog box to export them for use outside of the Control and Estimation Tools Manager. You can use the exported operating point to perform analysis at the MATLAB command line or to initialize a model for simulation.
Under Select destination workspace, select either
Base workspace to export the operating point to the MATLAB workspace where you can use it with Simulink Control Design command-line functions
Model workspace to export the operating point to the Model workspace where you can save it with the model for future use.
Enter a name for the exported operating point.
Select Use the operating point to initialize model when you want to use the operating point values as initial conditions for the states and inputs in the model. The initial values are automatically set in the Data Import/Export pane of the Configuration Parameters dialog box. Simulink software uses these initial conditions when simulating the model.
To export linearization I/O settings to the MATLAB workspace, use the getlinio function. You can save these settings using the save function. Use them in a later session by reloading them with the load function. Upload them to the model diagram with the setlinio function.
For more information, see the function reference pages for getlinio and setlinio.
![]() | Opening Previously Saved Projects |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |