This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Generate MATLAB Code for Linearization from Linear Analysis Tool

This topic shows how to generate MATLAB® code for linearization from the Linear Analysis Tool. You can generate either a MATLAB script or a MATLAB function. To programmatically reproduce a linearization result that you obtained interactively, you can use a generated MATLAB script. To perform multiple linearizations with systematic variations in your linearization configuration, you can use a generated MATLAB function.

To generate MATLAB code for linearization:

  1. In the Linear Analysis Tool, on the Linear Analysis tab, interactively configure the analysis points, operating points, and parameter variations for linearization.

  2. In the Linearize section, expand the gallery by clicking .

  3. In the gallery, depending on the type of code you want to create, click:

    The software creates a MATLAB file that contains the generated code and opens the file in the MATLAB Editor.

  4. In the MATLAB Editor, you can edit and save the file.

See Also



Related Topics