All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Description: Calculate the drag force on a bicycle using MATLAB and PLOT using DragForce vs Velocity. Formula for Drag Force: Fd=1/2*P*A*V.^2*cd where: Fd-Newton(N) - kg/m-s.^2 Density - kg/m.^3 Velocity (V) - m.^2 Constant - m.^2/s.^2 Program: Case-1:…
sriram srikanth
updated on 16 Feb 2020
Description:
Calculate the drag force on a bicycle using MATLAB and PLOT using DragForce vs Velocity.
Formula for Drag Force: Fd=1/2*P*A*V.^2*cd
where:
Fd-Newton(N) - kg/m-s.^2
Density - kg/m.^3
Velocity (V) - m.^2
Constant - m.^2/s.^2
Program:
Case-1: velocity vs drag force
clear all
close all
clc
% Inputs
% Drag coefficient
c_d = 0.8
% Area m.^2
A = 0.1
% Density kg/m.^3
rho = 1.2
% Velocity `m.^2
V = [1 2 3 4 5]
% drag Force = `rho*a*v.^2*c_d*0.8
% Plotting
plot(v,F_d,'linewidth','color','r')
xlabel('Velocity')
ylabel('drag Force')
title('drag Force vs Velocity')
% Plotting
plot(v,F_d,'linewidth','color','r')
xlabel('drag coefficient')
ylabel('drag force')
title('drag coefficient vs drag force')
grid on
Case-2: drag coefficient vs drag force
clear all
close all
clc
% Inputs
% Drag coefficient
c_d = [1:50]
%Area m^2
A = 0.1
% Density kg/m^3
rho = 1.2
% Velocity `m.^2
v = [2]
drag_force = rho*A*v.^2*c_d*0.8
plot(c_d,drag_force)
xlabel('drag_coefficient')
ylabel('drag_force')
title('drag_coefficient vs drag_force')
grid on
Output:
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Week - 12 - Creating the locator, writing and reading the node data
CHALLENGE-12
30 Jul 2022 07:44 AM IST
Project 1- Building a Master TCL/TK Macro
PROJECT-1
30 Jul 2022 07:42 AM IST
Project - 2 - Generating the report for hypermesh file
PROJECT-2
30 Jul 2022 07:41 AM IST
Week - 11 - Element quality check
AIM: To check the element quality. OBJECTIVE: Create element quality check macro for 2D and 3D elements. Create a button for each criterion. On pressing the button the elements should be highlighted using temp nodes. Entry boxes next to the buttons will accept the quality criteria value. PROCEDURE:…
16 Feb 2022 11:29 AM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.