10.10. Obtaining State-Space Model from Simulink Diagram
A state-space linear model consisting of the system of ordinary differential equations can be extracted from a given Simulink model (transfer function form) using linmod function. The syntax is
[a,b,c,d] = linmod('sys') [a,b,c,d] = linmod('sys', x,u)
where
sys is the name of the Simulink model whose state-space model is to be obtained, and
x and u are state vector and input vectors, respectively, to be specified by the user.
The following example illustrates the use of linmod function.
Example 10.6.
Obtain the state-space model for the system whose block diagram has been shown in Figure 10.35 using linmod function. Figure 10.35. Block Diagram for Example 10.6 |
Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.