The (x,y) coordinates of a projectile can be generated as a function of time, t, with the following parametric equations
x=vocos(at)
y=vosin(at) - 0.5gt^2
Where vo= initial velocity (m/s)
a = initial angle (radians)
g = gravitational constant (=9.81m/s^2)
Cite As
An pham (2026). THROWING OBJECTS (https://www.mathworks.com/matlabcentral/fileexchange/70281-throwing-objects), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2018b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Random Number Generation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
