Project

Program to calculate drag force against a cyclist

%plot of velocity vs drag dorce

clear all

close all

clc

%Inputs

v = [1:32];

c_d = 0.88;

a = 0.2;

rho = 1.8;

drag_force = 0.5*rho*a*c_d*v.^2;

plot(v,drag_force);

xlabel(\'Velocity\');

ylabel(\'Drag force\');

grid on;

%plot of drag coefficient and drag force

clear all

close all

clc

%Inputs

v = 1.1;

a = 0.2;

rho = 1.8;

drag_force = 0.5*rho*a*v^2*c_d;

plot(c_d,drag_force);

xlabel(\'Drag coefficient\');

ylabel(\'Drag force\');

grid on;

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.