MATLAB for Engineers, 3e, is ideal for Freshman or Introductory courses in Engineering and Computer Science. With a hands-on approach and focus on problem solving, this introduction to the powerful MATLAB computing language is designed for students with only a basic college algebra background. Numerous examples are drawn from a range of engineering disciplines, demonstrating MATLAB’s applications to a broad variety of problems. This book is included in Prentice Hall’s ESource series. ESource allows professors to select the content appropriate for their freshman/first-year engineering course. Professors can adopt the published manuals as is or use ESource’s website www.prenhall.com/esource to view and select the chapters they need, in the sequence they want. The option to add their own material or copyrighted material from other publishers also exists. Cover......Page 1 Title Page......Page 5 Copyright Page......Page 6 CONTENTS......Page 7 ABOUT THIS BOOK......Page 13 DEDICATION AND ACKNOWLEDGMENTS......Page 17 1.1 What Is MATLAB[sup(®)]?......Page 19 1.2 Student Edition of MATLAB[sup(®)]......Page 20 1.3 How Is MATLAB[sup(®)] Used in Industry?......Page 21 1.4 Problem Solving in Engineering and Science......Page 23 2.1 Getting Started......Page 27 2.2 MATLAB[sup(®)] Windows......Page 29 2.3 Solving Problems with MATLAB[sup(®)]......Page 36 2.4 Saving Your Work......Page 60 Summary......Page 70 MATLAB[sup(®)] Summary......Page 72 Problems......Page 73 3.1 Using Built-In Functions......Page 81 3.2 Using the Help Feature......Page 83 3.3 Elementary Math Functions......Page 86 3.4 Trigonometric Functions......Page 94 3.5 Data Analysis Functions......Page 98 3.6 Random Numbers......Page 118 3.7 Complex Numbers......Page 122 3.8 Computational Limitations......Page 126 3.9 Special Values and Miscellaneous Functions......Page 127 3.10 Summary......Page 129 MATLAB[sup(®)] Summary......Page 130 Key Terms......Page 131 Problems......Page 132 4.1 Manipulating Matrices......Page 139 4.2 Problems with Two Variables......Page 146 4.3 Special Matrices......Page 153 Summary......Page 159 Problems......Page 160 5.1 Two-Dimensional Plots......Page 167 5.2 Subplots......Page 184 5.3 Other Types of Two-Dimensional Plots......Page 186 5.4 Three-Dimensional Plotting......Page 201 5.5 Editing Plots from the Menu Bar......Page 207 5.6 Creating Plots from the Workspace Window......Page 209 5.7 Saving Your Plots......Page 210 MATLAB[sup(®)] Summary......Page 211 Problems......Page 213 6.1 Creating Function M-Files......Page 223 6.2 Creating Your Own Toolbox of Functions......Page 242 6.3 Anonymous Functions and Function Handles......Page 244 6.4 Function Functions......Page 245 6.5 Subfunctions......Page 246 Summary......Page 249 MATLAB[sup(®)] Summary......Page 250 Problems......Page 251 7.1 User-Defined Input......Page 258 7.2 Output Options......Page 262 7.3 Graphical Input......Page 272 7.4 More Cell Mode Features......Page 273 7.5 Reading and Writing Data from Files......Page 278 7.6 Debugging Your Code......Page 281 Summary......Page 284 MATLAB[sup(®)] Summary......Page 285 Problems......Page 286 Introduction......Page 291 8.1 Relational and Logical Operators......Page 292 8.2 Flowcharts and Pseudocode......Page 294 8.3 Logical Functions......Page 295 8.4 Selection Structures......Page 302 8.5 Debugging......Page 318 MATLAB[sup(®)] Summary......Page 319 Problems......Page 320 Introduction......Page 329 9.1 For Loops......Page 330 9.2 While Loops......Page 338 9.3 Break and Continue......Page 346 9.4 Midpoint Break Loops......Page 347 9.5 Nested Loops......Page 351 9.6 Improving the Efficiency of Loops......Page 352 Summary......Page 354 Problems......Page 355 10.1 Matrix Operations and Functions......Page 361 10.2 Solutions of Systems of Linear Equations......Page 381 10.3 Special Matrices......Page 397 Summary......Page 399 MATLAB[sup(®)] Summary......Page 401 Problems......Page 402 Introduction......Page 409 11.1 Data Types......Page 410 11.2 Multidimensional Arrays......Page 419 11.3 Character Arrays......Page 421 11.4 Cell Arrays......Page 426 11.5 Structure Arrays......Page 427 MATLAB[sup(®)] Summary......Page 435 Problems......Page 436 Introduction......Page 442 12.1 Symbolic Algebra......Page 443 12.2 Solving Expressions and Equations......Page 453 12.3 Symbolic Plotting......Page 464 12.4 Calculus......Page 472 12.5 Differential Equations......Page 486 12.6 Converting Symbolic Expressions to MATLAB[sup(®)] Functions......Page 488 Summary......Page 489 MATLAB[sup(®)] Summary......Page 491 Problems......Page 492 13.1 Interpolation......Page 502 13.2 Curve Fitting......Page 512 13.3 Using the Interactive Fitting Tools......Page 523 13.4 Differences and Numerical Differentiation......Page 530 13.5 Numerical Integration......Page 538 13.6 Solving Differential Equations Numerically......Page 544 Summary......Page 551 MATLAB[sup(®)] Summary......Page 553 Problems......Page 554 14.1 Images......Page 563 14.2 Handle Graphics......Page 579 14.3 Animation......Page 583 14.4 Other Visualization Techniques......Page 589 14.5 Introduction to Volume Visualization......Page 591 Summary......Page 594 MATLAB[sup(®)] Summary......Page 595 Key Terms......Page 596 Problems......Page 597 Introduction......Page 599 15.1 A Simple GUI with One User Interaction......Page 600 15.2 A Graphical User Interface with Multiple User Interactions—Ready_Aim_Fire......Page 608 15.3 An Improved Ready_Aim_Fire Program......Page 611 15.4 A Much Better Ready_Aim_Fire Program......Page 612 15.5 Built-In GUI Templates......Page 616 Problems......Page 620 16.1 Applications......Page 622 16.2 Getting Started......Page 623 16.3 Solving Differential Equations with Simulink[sup(®)]......Page 631 Summary......Page 636 Problems......Page 637 APPENDIX A: SPECIAL CHARACTERS, COMMANDS, AND FUNCTIONS......Page 641 APPENDIX B: SCALING TECHNIQUES......Page 656 APPENDIX C: THE READY_AIM_FIRE GUI......Page 659 APPENDIX D: Solutions to Practice Exercises......Page 664 INDEX......Page 722