Drag Force Calculations
clear all
close all
clc
%PROGRAM TO CALCULATE DRAG FORCE FOR A CYCLIST
%Density of the Fluid Medium(kg/m^3)
rho = 1.225;
%Acceleration of the Cyclist(m/s^2)
a = 10;
%Coefficient of Drag Force
c_d = 0.2;
%Velocities
v = [1:100];
%Drag Force Formula
F_d = 0.5*rho*a*v.^2*c_d;
%Plotting Graph
plot(v,F_d,\'linewidth\',3,\'color\',\'r\');
xlabel(\'Velocity\')
ylabel(\'Drag Force\')
grid on
plot(F_d,c_d,\'linewidth\',3,\'color\',\'b\');
xlabel(\'Drag Force\')
ylabel(\'Coefficient Of Drag\')
grid on