drag force against a cyclist
%drag force on a bicycle(drag force vs velocity)
- clear all
- close all
- clc
- %inputs
- drag_coefficient = 0.6
- area = 0.5
- density = 1.5
- velocity = [1:30]
- drag-force = density*area*velocity.^2*drag_coefficient*0.5;
- plot(velocity,drag_force)
- xlabel(\'velocity\')
- ylabel(\'drag force\')
- grid on
%drag force on a bicycle(drag force vs drag coefficient)
- clear all
- close all
- clc
- %inputs
- drag_coefficient = [0.1:0.8]
- area = 0.5
- density = 1.5
- velocity = 1
- drag-force = density*area*velocity^2*drag_coefficient.*0.5;
- plot(drag_force,drag_coefficient);
- xlabel(\'velocity\')
- ylabel(\'drag force\')
- grid on