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.
![[K[0, "Md"] = -6.88469999999999960, K[0, "Mq"] = -.657100000000000018, K[0, "Mw"] = -0.591999999999999992e-2, K[0, "Uo"] = 689.399999999999976, K[0, "Zd"] = -63.9979000000000014, K[0, "Zw"] = -.638499999999999958]](/support/helpjp/helpview.aspx?si=8296/file07818/math738.png)
| (4.1) |
The differential equations are created.
| (4.2) |
The following table illustrates the different components of the variable sys2.
Differential Equations
 = x[12, 1](t)/K[0, "Uo"], diff(x[12, 1](t), t) = K[0, "Zd"]*u[1, 1, 1](t)-u[1, 2, 1](t)+K[0, "Uo"]*y[1, 2, 1](t)+K[0, "Zw"]*x[12, 1](t), diff(x[13, 1](t), t) = K[0, "Mw"]*x[12, 1](t)-u[1, 3, 1](t)+K[0, "Md"]*u[1, 1, 1](t)+K[0, "Mq"]*x[13, 1](t), y[1, 2, 1](t) = x[13, 1](t)]](/support/helpjp/helpview.aspx?si=8296/file07818/math803.png)
| (4.3) |
|
Parameter values
![[K[0, "Md"] = -6.88469999999999960, K[0, "Mq"] = -.657100000000000018, K[0, "Mw"] = -0.591999999999999992e-2, K[0, "Uo"] = 689.399999999999976, K[0, "Zd"] = -63.9979000000000014, K[0, "Zw"] = -.638499999999999958]](/support/helpjp/helpview.aspx?si=8296/file07818/math843.png)
| (4.4) |
|
Initial conditions
| (4.5) |
|
Equations for the sources (inputs)
| (4.6) |
|
List of sinks (outputs)
| (4.7) |
|
|
|