Project

Program to calculate drag force against a cyclist

%Program to find drag force of a bicycle

clear all

close all

clc

%input

%drag_coefficient(c_d varies from 0.7 to 1.15 for a cyclist)

C_d = linspace(0.7,1.15,25)

%density kg/m^3

rho= 1.2

%Area m^2

A=0.1

%velocity m/s

v= [1:25]

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

plot(v,drag_force)

xlabel(\'velocity\')

ylabel(\'drag_force\')

To plot drag force vs drag coefficient

plot(drag_force,c_d)

xlabel(\'drag_force\')

ylabel(\'c_d\')

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.