Exporting Results

Exporting Linearization Results

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.

Exporting Compensator Designs

To export a compensator design to the MATLAB workspace:

  1. Select File > Export from the SISO Design Tool window.

  2. In the SISO Tool Export dialog box, use the Select design list to choose the design you want to export.

  3. In the list, select the compensators to export, and then click either Export to Workspace or Export to Disk.

Exporting Operating Points

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.

  1. Under Select destination workspace, select either

  2. Enter a name for the exported operating point.

  3. 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.

Exporting and Restoring Linearization I/O Settings

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.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS