Phu Xuan University Library
Physical Modeling in MATLAB

External

Physical Modeling in MATLAB

Modeling and simulation are powerful tools for explaining the world, making predictions, designing things that work, and making them work better. Learning to use these tools can be difficult; this book is my attempt to make the experience as enjoyable and productive as possible. By reading this book—and working on the exercises—you will learn some programming, some modeling, and some simulation. With basic programming skills, you can create models for a wide range of physical systems.

Author
Allen B. Downey
Publisher
Olin College
Source
LibreTexts
License
CC BY-NC
Language
EN
Category
Basic Sciences
Contents· 122 sections
  1. 01: Modeling and Simulation
  2. 1.01: Modeling
  3. 1.02: A Glorified Calculator
  4. 1.03: Variables
  5. 1.04: Errors
  6. 1.05: Documentation
  7. 1.06: Chapter Review
  8. 1.07: Exercises
  9. 02: Scripts
  10. 2.01: Your First Script
  11. 2.02: Why Scripts
  12. 2.03: The Fibonacci Sequence
  13. 2.04: Floating-Point Numbers
  14. 2.05: Comments
  15. 2.06: Documentation
  16. 2.07: Assignment and Equality
  17. 2.08: Chapter Review
  18. 2.09: Exercises
  19. 03: Loops
  20. 3.01: Updating Variables
  21. 3.02: Bug Taxonomy
  22. 3.03: Absolute and Relative Error
  23. 3.04: for Loops
  24. 3.05: Plotting
  25. 3.06: Sequences
  26. 3.07: Series
  27. 3.08: Generalization
  28. 3.09: Incremental Development
  29. 3.10: Chapter Review
  30. 3.11: Exercises
  31. 04: Vectors
  32. 4.01: Creating Vectors
  33. 4.02: Vector Arithmetic
  34. 4.03: Selecting Elements
  35. 4.04: Indexing Errors
  36. 4.05: Vectors and Sequences
  37. 4.06: Plotting Vectors
  38. 4.07: Common Vector Operations
  39. 4.08: Chapter Review
  40. 4.09: Exercises
  41. 4.10: Working with Conditions
  42. 05: Functions
  43. 5.01: Name Collisions
  44. 5.02: Defining Functions
  45. 5.03: Function Documentation
  46. 5.04: Naming Functions
  47. 5.05: Multiple Input Variables
  48. 5.06: Chapter Review
  49. 5.07: Exercise
  50. 06: Conditionals
  51. 6.01: Relational Operators
  52. 6.02: if Statement
  53. 6.03: Incremental Development
  54. 6.04: Logical Functions
  55. 6.05: Nested Loops
  56. 6.06: Putting It Together
  57. 6.07: Encapsulation and Generalization
  58. 6.08: Adding a continue Statement
  59. 6.09: How Functions Work
  60. 6.10: Chapter Review
  61. 6.11: Exercise
  62. 07: Zero-finding
  63. 7.01: Solving Nonlinear Equations
  64. 7.02: Debugging
  65. 7.03: Chapter Review
  66. 7.04: Exercises
  67. 08: Functions of vectors
  68. 8.01: Functions and Vectors
  69. 8.02: Computing with Vectors
  70. 8.03: Debugging in Four Acts
  71. 8.04: Chapter Review
  72. 09: Ordinary Differential Equations
  73. 9.01: Functions and Files
  74. 9.02: Differential Equations
  75. 9.03: Eulers Method
  76. 9.04: Implementing Eulers Method
  77. 9.05: Solving ODEs with ode45
  78. 9.06: Time Dependence
  79. 9.07: What Could Go Wrong
  80. 9.08: Labeling Axes
  81. 9.09: Chapter Review
  82. 9.10: Exercise
  83. 10: Systems of ODEs
  84. 10.01: Matrices
  85. 10.02: Solving Systems of ODEs
  86. 10.03: Chapter Review
  87. 10.04: Exercises
  88. 11: Second-order systems
  89. 11.01: Newtonian Motion
  90. 11.02: Free Fall
  91. 11.03: ODE Events
  92. 11.04: Air Resistance
  93. 11.05: Chapter Review
  94. 11.06: Exercises
  95. 12: Two Dimensions
  96. 12.01: Spatial Vectors
  97. 12.02: Adding Vectors
  98. 12.03: ODEs in Two Dimensions
  99. 12.04: Drag Force
  100. 12.05: What Could Go Wrong
  101. 12.06: Chapter Review
  102. 12.07: Exercises
  103. 13: Optimization
  104. 13.01: Optimal Baseball
  105. 13.02: Trajectory
  106. 13.03: Range Versus Angle
  107. 13.04: fminsearch
  108. 13.05: Animation
  109. 13.06: Chapter Review
  110. 13.07: Exercises
  111. 14: Springs and Things
  112. 14.01: Bungee Jumping
  113. 14.02: Bungee Revisited
  114. 14.03: Spider-Man
  115. 14.04: Celestial Mechanics
  116. 14.05: Conservation of Energy
  117. 14.06: Chapter Review
  118. 15: Under the Hood
  119. 15.01: How ode45 Works
  120. 15.02: How fzero Works
  121. 15.03: How fminsearch Works
  122. 15.04: Chapter Review