Skip to content
Permalink
a951e0a778
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (24 sloc) 435 Bytes
We can make this file beautiful and searchable if this error is corrected: It looks like row 17 should actually have 1 column, instead of 3. in line 16.
Data
Re(e-4) C_D
2 0.52
5.8 0.52
16.8 0.52
27.2 0.5
29.9 0.49
33.9 0.44
36.3 0.18
40 0.074
46 0.067
60 0.08
100 0.12
200 0.16
400 0.19
mu=1.78e-5;
V=linspace(4,40,1000);
D=23.5;
rho=1.3;
Re=rho*V*D/mu*1e-4;
Cd_int = interp1(data(:,1), (data(:,2), Re, 'spline');
Cd_int_pc = interp1(data(:,1), (data(:,2), Re, 'pchip');
plot(Re, Cd_int, Re, Cd_int_pc, data(:,1),data(:,2),'o','MarkerSize',10,LineWidth
legend('cubic','pchip','data')