1.1 What is MATLAB? 1 -- 1.2 Elementary MATLAB Constructs 3 -- 1.2.1 MATLAB Variables 4 -- 1.2.2 Arithmetic Operations 13 -- 1.2.3 Logical and Relational Operations 21 -- 1.2.4 Mathematical Functions 26 -- 1.2.5 Graphical Functions 33 -- 1.2.6 I/O Operations 50 -- 1.2.7 Import Wizard 52 -- 1.2.8 Special I/O Functions 52 -- 1.2.9 The MATLAB Search Path 54 -- 1.2.10 Elementary Matrix Manipulations 56 -- 1.3 More Complicated Data Structures 64 -- 1.3.1 Structures 64 -- 1.3.2 Cell Arrays 72 -- 1.3.3 Definition of Cell Arrays 73 -- 1.3.4 Access to Cell Array Elements 77 -- 1.4 The MATLAB Desktop 82 -- 1.5 MATLAB Help 86 -- 1.6 MATLAB Programming 88 -- 1.6.1 MATLAB Procedures 88 -- 1.6.2 MATLAB Functions 90 -- 1.6.3 MATLAB Language Constructs 95 -- 1.6.4 The Function eval 107 -- 1.6.5 Function Handles 109 -- 1.6.6 Solution of Differential Equations 113 -- 1.7 MATLAB Editor and Debugger 123 -- 1.7.1 Editor Functions 123 -- 1.7.2 Debugging Functions 125 -- 1.8 Symbolic Calculations With The Symbolics Toolbox 127 -- 1.8.1 Symbolic "Auxiliary Calculations" 131 -- 2.1 What is Simulink? 135 -- 2.2 Operating Principle And Management of Simulink 136 -- 2.2.1 Constructing a Simulink Block Diagram 138 -- 2.2.2 Parametrizing Simulink Blocks 141 -- 2.2.3 Simulink Simulation 145 -- 2.3 Solving Differential Equations with Simulink 150 -- 2.4 Simplification of Simulink Systems 159 -- 2.4.1 The Fcn Block 159 -- 2.4.2 Construction of Subsystems 160 -- 2.5 Interaction with MATLAB 164 -- 2.5.1 Transfer of Variables between Simulink and MATLAB 164 -- 2.5.2 Iteration of Simulink Simulations in MATLAB 167 -- 2.5.3 Transfer of Variables Through Global Variables 179 -- 2.6 Dealing with Characteristic Curves 180 -- 3.1 Hello World 189 -- 3.1.1 Personalized Hello World 189 -- 3.1.2 Hello World with Input 190 -- 3.2 Simple Menu 191 -- 3.3 File Reading and Writing 195 -- 3.3.1 Writing a File 195 -- 3.3.2 Reading a File 196 -- 3.4 Sorting 199 -- 3.5 Working with Biological Images 202 -- 3.5.1 Creating a Sub-image 203 -- 3.5.2 Working with Multiple Images 208 -- 3.6 Working with a Sound File 210 -- 3.7 Permutations 217 -- 3.8 Approaching a Problem and Using Heuristics 222 -- 3.9 Making Permutations Faster 223 -- 3.9.1 A Faster Way 223 -- 3.9.2 Measuring Time 226 -- 3.9.3 The Growth of the Problem 228 -- 3.10 Search a File 229 -- 3.10.1 A Side Note About System Commands 229 -- 3.10.2 DNA Matching 230 -- 3.10.3 Our Search Through a File 231 -- 3.10.4 Buffering Our Data 234 -- 3.10.5 A Further Check 239 -- 3.10.6 Generating Random Data 244 -- 3.11 Analyzing a Car Stereo 247 -- 3.11.1 A Fun Sound Effect 254 -- 3.11.2 Another Fun Sound Effect 255 -- 3.11.3 Why Divide By 2? 256 -- 3.11.4 Stereo Test Conclusion 259 -- 3.12 Drawing a Line 262 -- 3.12.1 Finding Points Along a Line 262 -- 3.12.2 Coding the Solution to Points Along a Line 264 -- 3.12.3 Drawing the Line 267 -- 3.13 Drawing a Frame 269 -- 3.14 Filling a Diamond Shape 273 -- 3.15 Drawing an Entire Cube 278 -- 3.16 Adjusting Our View 282 -- 4.1 Solutions to the MATLAB Problems 289 -- 4.2 Solutions to the Simulink Problems 349 -- Appendix A Table of Arithmetic MATLAB Operations 367 -- A.1 Arithmetic Operations as Matrix Operations 367 -- A.2 Arithmetic Operations as Field Operations 369 -- Appendix C New Release Information (R2007b) 373 -- C.1 Backwards Compatibility 373 -- C.2 What is New for R2007b 375
Author(s): Ottmar Beucher; Michael Weeks
Series: Engineering series
Edition: 3ed.
Publisher: Infinity Science Press
Year: 2007
Language: English
Pages: 404
City: Hingham, Mass