Physical Modeling in MATLABby Allen B. Downey
Physical Modeling in MATLAB is an introduction to programming in MATLAB and simulation of physical systems.
Read this book online.
Most books that use MATLAB are aimed at readers who know how to program. This book is for people who have never programmed before.
As a result, the order of presentation is unusual. The book starts with scalar values and works up to vectors and matrices very gradually. This approach is good for beginning programmers, because it is hard to understand composite objects until you understand basic programming semantics. But there are problems:
I assume that readers know calculus, differential equations, and physics, but not linear algebra. I explain the math as I go along, but the descriptions might not be enough for someone who hasn't seen the material before.
There are small exercises within each chapter, and a few larger exercises at the end of some chapters.
This is version 1.1 of the book. It is a work in progress, so I welcome suggestions and corrections. Please send them to downey at greenteapress dot com.
Physical Modeling in MATLAB is a free book available under the GNU Free Documentation License. Readers are free to copy and distribute the text; they are also free to modify it, which allows them to adapt the book to different needs, and to help develop new material.
A printable version of the book is available in PDF.
The LaTeX source code (with figures and a Makefile) is in this zip file.
Are you using one of our books in a class?We'd like to know about it. Please consider filling out this short survey.