1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| clear all
close all
theta=80; % angle de tir
g=10; % gravité
m=100; % Masse du ballon
R=1; % Rayon du ballon
k=R*3.4*10^(-4); % Coef de frottement
V0=50; % Vitesse intiale en m/s
figure
subplot(2,1,1)
grid
hold on
for theta=30:10:90
x=0:0.1:100; % Position en x du ballon, à modifier.
y=-(g)/(2*(V0^2)*cosd(theta)^2)*x.^2 + tand(theta).*x; % Trajectoire
plot(x,y) % représentation graphique
end
subplot(2,1,2)
hold on
grid
theta=30;
for V0=50:10:80
y=-(g)/(2*(V0^2)*cosd(theta)^2)*x.^2 + tand(theta).*x; % Trajectoire
plot(x,y) % représentation graphique
end |
Partager