by Allen B. Downey
Each chapter of the book is a notebook you can read and run in your browser. The code runs in GNU Octave, the free alternative to MATLAB, compiled to run in the browser: there is nothing to install and no account to create.
Click a chapter to open it, then run each code cell in order with Shift+Enter. You can change the code and run it again. The first chapter you open downloads Octave, which can take a minute.
Your changes are saved in this browser only. To work with all the files, including each chapter's code, open the full workspace.
Physical Modeling in MATLAB is an introduction to programming and to modeling and simulation of physical systems, for people who have never programmed before. It assumes some calculus and basic physics.
The examples are written for MATLAB and also run in GNU Octave. Text: CC BY-NC 4.0; code: MIT License.