addpath("functions") % Initial values v0 = 50; % m/s theta = 45; % degrees b = 0.8; %kg/s m = 1.0; %kg time = 0:0.05:5; [x_path, y_path] = projectile_drag(v0, theta, b, m, time); plot(x_path, y_path, "Color", "red", "LineWidth", 1.5); title("Projectile Motion with Air Drag"); xlabel("x(m)"); ylabel("y(m)"); xlim([x_path(1), x_path(end)]);