Thư viện Trường Đại học Phú Xuân
Fundamentals of MATLAB Programming

Nguồn ngoài

Fundamentals of MATLAB Programming

This is the textbook for ENGR 20: Introduction to MATLAB Programming at Irvine Valley College (IVC).

Tác giả
Zara Noroozi
Nhà xuất bản
Irvine Valley College
Nguồn
LibreTexts
Giấy phép
CC BY-NC-SA
Ngôn ngữ
EN
Danh mục
Công nghệ thông tin
Mục lục· 207 mục
  1. 01: Introduction
  2. 1.01: Learning Objectives
  3. 1.02: Why Should You Learn MATLAB
  4. 1.03: What is MATLAB
  5. 1.04: Getting to Know the MATLAB Environment
  6. 1.05: Using MATLAB Interactively
  7. 1.06: Variable and Assignment Statements
  8. 1.07: Useful Workspace Commands
  9. 1.08: A short Introduction to Binary Numbers and Computer Storage
  10. 1.09: MATLAB Data Types
  11. 1.9.01: Numeric Variables
  12. 1.9.02: Texts - Characters and Strings
  13. 1.9.03: Logical Variables
  14. 1.10: Numeric Expressions and Operations
  15. 1.11: Logical Operators
  16. 1.12: Getting Help in MATLAB
  17. 1.13: Common Mistakes and Best Practices
  18. 1.14: Chapter Exercises
  19. 02: Scripts and Functions
  20. 2.01: Learning Objectives
  21. 2.02: From Calculator Commands to Programs
  22. 2.03: MATLAB Scripts
  23. 2.04: Documenting Scripts with Comments
  24. 2.05: Getting Input from the User
  25. 2.06: Displaying Output - disp and fprintf
  26. 2.07: Scripts vs. Functions
  27. 2.08: Creating User-Defined Functions
  28. 2.09: Common MATLAB Math Fuctions
  29. 2.10: Common Mistakes and Best Practices
  30. 2.11: Chapter Exercises
  31. 03: One-Dimensional Arrays
  32. 3.01: Learning Objectives
  33. 3.02: Why Arrays Matter
  34. 3.03: Creating One-Dimensional Numeric Arrays (Vectors)
  35. 3.04: Common Vector Operations
  36. 3.05: Extending and Deleting Elements
  37. 3.06: Length and Size
  38. 3.07: Finding Minimum and Maximum Values
  39. 3.08: Logical Arrays and Logical Indexing
  40. 3.09: Scalar Arithmetic with Arrays
  41. 3.10: Element-by-Element Array Operations
  42. 3.11: Arrays as Function Arguments
  43. 3.12: Common Vector Operations
  44. 3.13: Common Mistakes and Best Practices
  45. 3.14: Chapter Exercises
  46. 04: Two-Dimensional Arrays
  47. 4.01: Learning Objectives
  48. 4.02: Why Two-Dimensional Arrays Matter
  49. 4.03: Creating and Indexing a 2D Array
  50. 4.04: Extracting Rows Columns and Subarrays
  51. 4.05: Modifying and Extending a Matrix
  52. 4.06: Concatinating 2D Arrays
  53. 4.07: Flattening and Deleting Parts of a Matrix
  54. 4.08: Logical Indexing with 2D Arrays
  55. 4.09: The end size length numel min and max functions
  56. 4.10: Special 2D Arrays
  57. 4.11: More Matrix Functions
  58. 4.12: Array Operations vs. Matrix Operations
  59. 4.13: Sorting Arrays
  60. 4.14: Logical Functions for Arrays
  61. 4.15: Common Mistakes and Best Practices
  62. 4.16: Chapter Exercises
  63. 05: Branches
  64. 5.01: Learning Objectives
  65. 5.02: Why Programs Need Branches
  66. 5.03: Conditions and Decision Making
  67. 5.04: The if Statement
  68. 5.05: The if-else Statement
  69. 5.06: Multiple Branches with if-elseif-else
  70. 5.07: The Switch Statement
  71. 5.08: Common Mistakes and Best Practices
  72. 5.09: Chapter Exercises
  73. 06: Loops
  74. 6.01: Learning Objectives
  75. 6.02: Why Do We Need Loops
  76. 6.03: while Loops
  77. 6.04: for Loops
  78. 6.05: Processing Arrays with for Loops
  79. 6.06: Nested Loops
  80. 6.07: The break Statement
  81. 6.08: The continue Statement
  82. 6.09: while Loops vs. for Loops
  83. 6.10: Common Mistakes and Best Practices
  84. 6.11: Practice Exercises
  85. 07: Strings and Character Arrays
  86. 7.01: Learning Objectives
  87. 7.02: Why Text Matters in MATLAB
  88. 7.03: Creating Strings
  89. 7.04: Creating Character Vector
  90. 7.05: Converting Between Strings and Character Vectors
  91. 7.06: Counting Characters- strlength vs. length
  92. 7.07: Comparing Text
  93. 7.08: Checking Text Types and Properties
  94. 7.09: Finding Text
  95. 7.10: Parsing and Editing Text
  96. 7.11: Converting and Formatting Text
  97. 7.12: Combining Text
  98. 7.13: Common Mistakes and Best Practices
  99. 7.14: Chapter Exercises
  100. 08: Data Structures
  101. 8.01: Learning Objectives
  102. 8.02: Introduction- When Regular Arrays are Not Enough
  103. 8.03: Review- Homogeneous and Heterogeneous Data
  104. 8.04: Cell Arrays
  105. 8.05: Structures
  106. 8.06: Arrays of Structures
  107. 8.07: Tables
  108. 8.08: Common Mistakes and Best Practices
  109. 8.09: Chapter Exercises
  110. 09: File Input - Output
  111. 9.01: Learning Objectives
  112. 9.02: Why File Input and Output Matters
  113. 9.03: Simple File I O with load and save
  114. 9.04: Limitations of load and save
  115. 9.05: The Three-Step Process for Advanced File I O
  116. 9.06: Reading Mixed Data with textscan
  117. 9.07: Reading One Line at a Time with fgetl
  118. 9.08: Writing Formatted Text with fprintf
  119. 9.09: Spreadsheet File I O
  120. 9.10: Storing File Content in an M-File
  121. 9.11: Choosing the Right File I O Tool
  122. 9.12: Common Mistakes and Best Practices
  123. 9.13: Chapter Exercises
  124. 10: Plotting
  125. 10.01: Learning Objectives
  126. 10.02: Why Data Visualization Matters
  127. 10.03: Creating Simple Plots
  128. 10.04: Creating Subplots
  129. 10.05: Plots with Error Bars
  130. 10.06: Other Common 2D Plot Types
  131. 10.07: Changing Graphics Properties
  132. 10.08: Histograms
  133. 10.09: Pie Charts
  134. 10.10: Scatter Plots
  135. 10.11: Three-Dimensional Plots
  136. 10.12: Animated Plots
  137. 10.13: Mesh and Surface Plots
  138. 10.14: Saving and Opening Figures
  139. 10.15: Choosing the Right Plot Type
  140. 10.16: Common Mistakes and Best Practices
  141. 10.17: Chapter Exercises
  142. 11: Introduction to Simulink
  143. 11.01: Learning Objectives
  144. 11.02: What is Simulink
  145. 11.03: Getting Started with Simulink
  146. 11.04: Basic Simulink Vocabulary
  147. 11.05: Example- Adding Two Numbers
  148. 11.06: Subtracting Two Numbers
  149. 11.07: Using MATLAB Variables in Simulink
  150. 11.08: Example- Evaluating an Expression
  151. 11.09: Time-Varying Signals and the Scope Block
  152. 11.10: Modeling y sin(x) x
  153. 11.11: Exporting Simulink Output to MATLAB
  154. 11.12: Solving Differential Equations in Simulink
  155. 11.13: Example- Falling Object with Air Drag
  156. 11.14: Example- Falling Object Position
  157. 11.15: Common Mistakes and Best Practices
  158. 11.16: Chapter Exercises
  159. 12: Applied Mathematics
  160. 12.01: Learning Objectives
  161. 12.02: Why Applied Mathematics Matters in MATLAB
  162. 12.03: Polynomials in MATLAB
  163. 12.04: Interpolation
  164. 12.05: Curve Fitting
  165. 12.06: Anonymous Functions
  166. 12.07: Numerical Integration
  167. 12.08: Numerical Differentiation and Polynomial Derivatives
  168. 12.09: Finding Roots
  169. 12.10: Common Mistakes and Best Practices
  170. 12.11: Chapter Exercises
  171. 13: Linear Algebra
  172. 13.01: Learning Objectives
  173. 13.02: Why Linear Algebra Matters
  174. 13.03: Vectors in MATLAB
  175. 13.04: Vectors as Physical Quantities
  176. 13.05: Vector Scalar Multiplication
  177. 13.06: Array Operations Review
  178. 13.07: Dot Product of Two Vectors
  179. 13.08: Cross Product of Two Vectors
  180. 13.09: Magnitude and Unit Vectors
  181. 13.10: Special Matrices and Matrix Operations
  182. 13.11: Matrix Addition and Subtraction
  183. 13.12: Matrix Scalar Multiplication
  184. 13.13: Matrix Multiplication
  185. 13.14: Matrix Determinant
  186. 13.15: Matrix Inverse
  187. 13.16: Linear Algebraic Equations
  188. 13.17: Writing a Linear System as Ax b
  189. 13.18: Solving Ax b
  190. 13.19: Possible Solutions to a Linear System
  191. 13.20: Strategy for Setting Up Linear Systems
  192. 13.21: Visualizing a 2 by 2 System of Equations
  193. 13.22: Common Mistakes and Best Practices
  194. 13.23: Chapter Exercises
  195. 14: Symbolic Math
  196. 14.01: Learning Objectives
  197. 14.02: Introduction- Why Symbolic Math
  198. 14.03: Creating and Evaluating Symbolic Variables and Expressions
  199. 14.04: Symbolic Differentiation
  200. 14.05: Symbolic Integration
  201. 14.06: Solving Equations Symbolically
  202. 14.07: Solving Systems of Equations
  203. 14.08: Simplifying Expanding and Factoring Expressions
  204. 14.09: Solving Differential Equations with dsolve
  205. 14.10: Plotting Symbolic Expressions
  206. 14.11: Common Mistakes and Best Practices
  207. 14.12: Chapter Exercises