equation for projectile motion

41 Ansichten (letzte 30 Tage)
andres
andres am 5 Dez. 2022
Beantwortet: Stephan am 5 Dez. 2022
hello im currenrty trying to find the displacement of a marbel falling of a ramp at 0.5 ft/s (Vi). the ramp varies anywhere from 0 to 30 degrees. it alsois 4 ft from i know that to use the kinematic equations i have to relate everything to time however i belive that my equation may be wrong because when i double check my work that data does not reflect that of the graph created in matlab. Below is a copy of my code...
clc
clear all
velocity=0.5;
figure;
hold on;
function d = projMotion(velocity,height,angle)
Vyi=velocity*sind(angle);
g=9.81;
tmax=(2*Vyi/g+sqrt((2*Vyi/g)^2+8*height/g))/2;
t=0:.001:tmax;
d=height+Vyi*t-.5*g*t.^2;
plot(t,d)
end
for height=4
for angle=0:1:30
d=projMotion(velocity,height,angle);
end
end

Antworten (1)

Stephan
Stephan am 5 Dez. 2022

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by