Program to Calculate Drag Force
% Program to Calculate Drag Force against a Cyclist
clear all
close all
clc
% Drag=0.5*rho*v^2*A*Cd
% Density of air
rho = 1.225
%Drag Coefficient; Flat Plate=1.28,Prism=1.14,Bullet=0.295,Sphere=0.07,Airfoil=0.045
CD = linspace(0.045,1.28,10)%Lowest and Highest value of CD of Various Objects with 10 Intervals
% Frontal Area
A = 0.1
% Velocity
V = [15]; %Typical Bicycle Velocity
% Drag
Drag = 0.5*rho*V.^2*A*CD
plot(Drag, CD)
xlabel('Drag')
ylabel('CD')
title('Drag Vs CD')