function [pos_x, pos_y] = projectile_drag(v0, theta, b, m, t) g = 9.81; %m/s^2 pos_x = ((m*v0*cos(theta))/b) * (1 - exp(-(b/m) * t)); pos_y = (m/b) * (v0*sin(theta)+((m*g)/b)) * (1-exp(-(b/m)*t)) - ((m*g*t)/b); end