Physics Simulations
This is a copy of the repository hosted at https://github.com/russphelan/matlab. Descriptions of what the physics scripts do, how to use them, and pictures of example output are available at that page.
Simulations include:
Pitching a baseball in 3D
Heat conduction in 1D, and 2D
Simple pendulum
Orbiting bodies around the Sun
Falling body with linear drag
Parabolic trajectory game
Lotka–Volterra predator-prey model
Also included are:
Monte Carlo integration, Simpson's Rule, and Rectangle Rule, with error comparisons
Conway's Game of Life
Polynomial root finder
Cite As
Russell Phelan (2026). Physics Simulations (https://github.com/russphelan/matlab), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Sciences > Biological and Health Sciences >
- Sciences > Physics >
- MATLAB > Mathematics > Numerical Integration and Differential Equations > Ordinary Differential Equations >
- Physical Modeling > Simscape Multibody > Multibody Modeling > Multibody Dynamics >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Baseball Simulation
CE2_Collaborative
Cannon Trajectories
Comet Orbits
Life
Numerical Differential Equations
Numerical Integral/deterministic_methods
Numerical Integral/monte_carlo
Partial Differential Equations
Predator Prey
Root Finder
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.1.0.0 | Added list of simulations to description. |
|
|
| 1.0.0.0 |
|
