Help! Projectile Motion Plotting
Afficher commentaires plus anciens
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 commentaires
Geoff Hayes
le 9 Avr 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
le 9 Avr 2020
Modifié(e) : Dark Shadow
le 9 Avr 2020
the cyclist
le 9 Avr 2020
Modifié(e) : the cyclist
le 9 Avr 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
le 9 Avr 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
