...
Code Block |
---|
function [vx , vy] = initVelocity(initialAngle, speedinitialSpeed) vx = cosd(initialAngle)*speedinitialSpeed; vy = sind(initialAngle)*speedinitialSpeed; end |
b)
Code Block |
---|
function [x, y] = position(x,y, vx, vy, dt) x = x + vx*dt; y = y + vy*dt; end |
...