a new title
Output:-c_d = 0.0400 0.0900 0.4200 0.4700 0.5000 0.8000 0.8200 1.0500 1.1500V = 10 20 30 40 50 60 70 80 90F_d = 0.2450 2.2050 23.1525 46.0600 76.5625 176.4000 246.1025 411.6000 570.5438Drag Coefficient of various shapes Streamlined Body = 0.04 Streamlined Half Body = 0.09 Hemi Sphere = 0.42 Sphere = 0.47 Cone = 0.5 Angled Cube = 0.8 Long Cylinder = 0.82 Cube = 1.05 Short Cylinder = 1.15%Program to calculate the drag force against a bicycle clear all close all clc %Input %Drag Coefficient of various shapes %Streamlined Body = 0.04 %Streamlined Half Body = 0.09 %Sphere = 0.47 %Hemi Sphere = 0.42 %Cone = 0.5 %Angled Cube = 0.8 % Long Cylinder = 0.82 %Cube = 1.05 %Short Cylinder = 1.15 c_d = [0.04 0.09 0.42 0.47 0.5 0.8 0.82 1.05 1.15] %Area m^2 A=0.1; %Density of air kg/m^3 rho=1.225; %Velocity m/s V=linspace(10,90,9) %Darg Force F_d=rho*A*V.^2.*c_d*0.5 %Plot hold on plot(F_d,V,'color','g'); xlabel('X axis - Drag Force ') ylabel('Y axis - Velocity') grid on;
REMARK : Please attach the code using insert code option
The other thing that you can do is to attach the code and images in projects.skill-lync.com and paste the link over here Code is perfect but marks are deducted here for not following the format.
Thank you.