F-14 Longitudinal Model
NOTE: You will need to have an installed and functioning version of MATLAB® and Simulink® to run this example.
|
Initialization
|
|
| (1.1) |
|
|
Import the System
|
|
We import the model with the following command. We need to specify the name of the model to import, as well as a MATLAB script that initializes the variable names.
Using the Summary command, we can view the model that we have imported.
| (2.1) |
We can now simplify the model to reduce the number of equations.
| (2.2) |
|
|
Simulate the System
|
|
First we take the system and build a set of differential equations, and assign the result to the variable sys.
| (3.1) |
The following table illustrates the different components of the variable sys1.
Differential Equations
| (3.2) |
|
Parameter values
| (3.3) |
|
Initial conditions
| (3.4) |
|
Equations for the sources (inputs)
| (3.5) |
|
List of sinks (outputs)
| (3.6) |
|
|
|
Using the information in the variable sys, we construct a simulation procedure.
| (3.7) |
Then we plot the simulation results.
|
|
Import the Subsystem
|
|
First we want to close the Simulink model without saving it, so we can reload it with the subsystem. We send the command close_system('m_f14', 0) through the link to MATLAB.
We can import a subsystem from the model.
The set of equations are simplified and the simplified set of equations is printed using the PrintSummary command.
| (4.1) |
The differential equations are created.
| (4.2) |
The following table illustrates the different components of the variable sys2.
Differential Equations
| (4.3) |
|
Parameter values
| (4.4) |
|
Initial conditions
| (4.5) |
|
Equations for the sources (inputs)
| (4.6) |
|
List of sinks (outputs)
| (4.7) |
|
|
|
|
|
Download Help Document
Was this information helpful?