12.17. Bode Diagrams for State-Space Representation
If the system is defined in state space, the following commands can be used to obtain the Bode diagrams:
bode (A, B, C, D) bode (A,B,C,D, iu , w)
where
w is user-supplied frequency vector.
iu is an index specifying which input is to be used for the response.
Example 12.20.
Obtain the Bode diagram for the following system given in state-space form:
Solution: The following program gives the desired response: %Program to obtain the Bode plot of the given transfer %function in state space form. A=[0 1; -20 -2]; B=[0;20]; C=[1 0]; D=[0]; bode(A,B,C,D); grid; title('Bode plot for T.F. in state ... |
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.