Help! Projectile Motion Plotting
Show older comments
clear all
close all
clc
format bank
%---------------------------------------------------------------
h = input('Hight is: ');
v0x = 10;
g = 9.8;
%---------------------------------------------------------------
t_max = sqrt(2*h/g)
x_max = v0x*g
%---------------------------------------------------------------
grid on
axis equal;
xlim([0, 100]);
ylim([0, 100]);
xlabel('x_max)');
ylabel('h');
title ('Graph h, x_max');
I have done most of the code but I dont understand how can I have the same graph look as the photo below (just the ball's motion).
Please help me
4 Comments
Geoff Hayes
on 9 Apr 2020
I think that you are missing one or more equations to determine the height at time t and the horizontal displacement at time t. Do you have those?
Dark Shadow
on 9 Apr 2020
Edited: Dark Shadow
on 9 Apr 2020
the cyclist
on 9 Apr 2020
Edited: the cyclist
on 9 Apr 2020
When you say, "that is all I have" you fail to mention this very detailed response you got the previous time you asked very nearly the same question -- just 6 hours ago.
You also asked a different question (also multiple times). And, again, you seem to not be showing any evidence of using any of the information you are receiving.
I think you need to find some help outside of this forum, from your instructor or a tutor.
Dark Shadow
on 9 Apr 2020
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!