File Exchange

image thumbnail

Simple Catapult Simulation

version (10.1 KB) by Matthew Kelly
Simulation of a simple catapult using ode45 with event detection.


Updated 10 Apr 2016

View License

Two-phase simulation of a simple torsion catapult: 1) catapult arm rotates, accelerating projectile, 2) projectile flies through the air. This code was designed as a tutorial for a sophomore dynamics class, demonstrating how to use ode45 with event detection to solve multiple-phase dynamics problems. It also shows some basic animation and plotting techniques.

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux