Project

Matlab program to calculate drag force

% To calculate the drag force
c_d = .8;
rho = .2;
ar = 1.5;

%Drag force vs velocity
v = linspace(1,25,25);
F_d = .5*rho*ar*c_d.*v.*v

figure(1)
plot(v , F_d,\'linewidth\',2)
xlabel(\'velocity\');
ylabel(\'Drag_force\');
title(\'drag force vs velocity\')

%drag force vs co-eff of drag(c_d)
c_d = linspace(.4,1.15,25);
v = 2;
F_d = .5*rho*ar*v*v*c_d;

figure(2)
plot(c_d,F_d,\'linewidth\',2)
xlabel(\'Co eff of drag\')
ylabel(\'Drag_force\')
title(\'drag force vs co-eff\')
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.