command for calculating drag force
Objective: %calcultion of drag force%coeffecient cd=.7;%frontal area m^2a=25;%density kg/m^3rho=1.225;%velocity m/sv=(1:25);%drag force dragforce=a*cd*rho*.5*v.^2;figure(1)plot(v,dragforce,'rd-')xlabel('velocity');ylabel('drag force');title('dragforce vs velocity');grid on;hold on%coeffecient for different shapes sphere cone cube…