Trying to make a ballistics code, with multiple angles.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I am having a tough time implementing my angle, I do not know how to implement multiple angles, and my graph has spaces at the begging and at the end. Here is what I have so far.
V=20; %Velocity A=(pi/6); %Angle of elevation VA=V*sin(A); G=-9.81; % gravity T=(VA./G).^2; %Time HV=V*cos(A);
x=(0:1:100); H=zeros(size(x)); x=x+V*cos(A)*T; H=V*T*sin(A)-(1/2)*G*T^2;
for ii=1:length(x); H(ii)=V*T*sin(A)-(1/2)*G*T^2; end
plot(x,H); title('Angry Birds Project'); xlabel('Meters'); ylabel('Height');
if you guys could just point me in the right direction that would be great!
0 Commenti
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!