Help! Projectile Motion Plotting
Mostrar comentarios más antiguos
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 comentarios
Geoff Hayes
el 9 de Abr. de 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
el 9 de Abr. de 2020
Editada: Dark Shadow
el 9 de Abr. de 2020
the cyclist
el 9 de Abr. de 2020
Editada: the cyclist
el 9 de Abr. de 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
el 9 de Abr. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
