Preface |
|
xiii | |
Acknowledgments |
|
xv | |
Basic MATLAB® |
|
|
Chapter 1. Introduction to MATLAB® |
|
|
3 | |
|
1.1 Introduction and Objectives |
|
|
3 | |
|
|
4 | |
|
|
5 | |
|
1.4 Addition and Subtraction |
|
|
5 | |
|
|
7 | |
|
|
8 | |
|
|
9 | |
|
|
10 | |
|
|
13 | |
|
1.10 Useful Interface GUIs |
|
|
13 | |
|
|
39 | |
|
Chapter 2. Plotting and Graphics |
|
|
43 | |
|
2.1 Introduction and Objectives |
|
|
43 | |
|
|
43 | |
|
2.3 Log and Semilog Plots |
|
|
47 | |
|
|
47 | |
|
|
48 | |
|
|
49 | |
|
|
51 | |
|
|
53 | |
|
|
55 | |
|
|
56 | |
|
|
58 | |
|
Chapter 3. Introduction to MATLAB® Toolboxes |
|
|
61 | |
|
3.1 Introduction and Objectives |
|
|
61 | |
|
3.2 Continuous Transfer Functions |
|
|
61 | |
|
|
63 | |
|
3.4 Step and Impulse Responses |
|
|
64 | |
|
|
67 | |
|
|
68 | |
|
|
68 | |
|
3.8 Linear Quadratic Regulator |
|
|
69 | |
|
|
70 | |
|
|
85 | |
|
|
92 | |
|
Chapter 4. Introduction to MATLAB® Cells, Structures, and M-Files |
|
|
95 | |
|
4.1 Introduction and Objectives |
|
|
95 | |
|
|
95 | |
|
|
97 | |
|
|
98 | |
|
|
102 | |
|
Chapter 5. Handle Graphics® and User Interfaces |
|
|
105 | |
|
5.1 Introduction and Objectives |
|
|
105 | |
|
|
105 | |
|
5.3 Graphical User Interface Development Environment |
|
|
112 | |
|
|
115 | |
|
|
117 | |
|
|
124 | |
|
5.7 Compiling a Stand-Alone Executable |
|
|
125 | |
|
|
126 | |
|
Chapter 6. Introduction to MATLAB® MEX-Files |
|
|
129 | |
|
6.1 Introduction and Objectives |
|
|
129 | |
|
6.2 Dynamically Linked Subroutines: MEX-Files |
|
|
129 | |
|
6.3 MATLAB® Engine Library |
|
|
142 | |
|
|
148 | |
Basic Simulink® |
|
|
Chapter 7. Brief Introduction to Simulink® and Stateflow® |
|
|
153 | |
|
7.1 Introduction and Objectives |
|
|
153 | |
|
|
153 | |
|
|
153 | |
|
7.4 Conditional System Model |
|
|
158 | |
|
7.5 Combined Simulink® and Stateflow® Systems |
|
|
161 | |
|
|
166 | |
|
|
169 | |
|
|
172 | |
|
Chapter 8. Introduction to Simulink® |
|
|
175 | |
|
8.1 Introduction and Objectives |
|
|
175 | |
|
8.2 Standard Simulink® Libraries |
|
|
175 | |
|
8.3 Simulink® Aerospace Blockset |
|
|
191 | |
|
8.4 Simulink® Installation and Demonstrations |
|
|
194 | |
|
|
205 | |
|
Chapter 9. Building a Simple Simulink® Model |
|
|
209 | |
|
9.1 Introduction and Objectives |
|
|
209 | |
|
|
209 | |
|
9.3 Analyzing the Population Model |
|
|
238 | |
|
|
239 | |
|
Chapter 10. Building Simulink® Linear Models |
|
|
243 | |
|
10.1 Introduction and Objectives |
|
|
243 | |
|
10.2 Transfer Function Modeling in Simulink® |
|
|
243 | |
|
|
254 | |
|
|
256 | |
|
|
258 | |
|
Chapter 11. LTI Viewer and SISO Design Tool |
|
|
261 | |
|
11.1 Introduction and Objectives |
|
|
261 | |
|
11.2 Introduction to the Simulink® LTI Viewer |
|
|
261 | |
|
11.3 Using the Simulink® LTI Viewer |
|
|
262 | |
|
11.4 Equivalent Simulink® LTI Models |
|
|
283 | |
|
|
285 | |
|
|
293 | |
|
Chapter 12. Building a Multiple-Input, Multiple-Output Simulink® Model |
|
|
297 | |
|
12.1 Introduction and Objectives |
|
|
297 | |
|
12.2 System Modeling in Simulink® |
|
|
297 | |
|
12.3 Parameter Estimation |
|
|
297 | |
|
12.4 MATLAB® Simulation Interface |
|
|
315 | |
|
12.5 Subsystems, Masking, and Libraries |
|
|
316 | |
|
|
323 | |
|
12.7 Using Vector Signals for Math Functions |
|
|
325 | |
|
|
329 | |
|
Chapter 13. Building Simulink® S-Functions |
|
|
335 | |
|
13.1 Introduction and Objectives |
|
|
335 | |
|
13.2 Simulink® S-Functions |
|
|
335 | |
|
13.3 Simulink® C and S-Function Example, Van der Pol Equation |
|
|
336 | |
|
13.4 Simulink® C and S-Function Builder Example, Van der Pol Equation |
|
|
342 | |
|
13.5 Example of a FORTRAN S-Function |
|
|
352 | |
|
13.6 Example of a CMEX S-Function Gateway |
|
|
354 | |
|
13.7 Simulink® Block Diagram Using S-Function |
|
|
358 | |
|
|
360 | |
Basic Stateflow® |
|
|
Chapter 14. Introduction to Stateflow® |
|
|
369 | |
|
14.1 Introduction and Objectives |
|
|
369 | |
|
14.2 Opening, Executing, and Saving Stateflow° Models |
|
|
369 | |
|
14.3 Constructing a Simple Stateflow® Model |
|
|
376 | |
|
14.4 Using a Stateflow® Truth Table |
|
|
410 | |
|
|
421 | |
Appendix A. History of MATLAB® and The MathWorks, Inc. |
|
425 | |
Appendix B. Tuning MATLAB®, Simulink®, and Stateflow® Solvers |
|
429 | |
|
B.1 Improving Simulation Performance and Accuracy |
|
|
429 | |
|
|
432 | |
|
B.3 Non-Real-Time and Real-Time Simulations |
|
|
436 | |
Appendix C. MATLAB®, Simulink®, and Stateflow® Quick Reference Guide |
|
437 | |
Bibliography |
|
473 | |
Index |
|
477 | |
Supporting Materials |
|
485 | |