Trying to integrate for drag
3 views (last 30 days)
Show older comments
- AOA_neg3_1.mat
- AOA_neg3_2.mat
- AOA_neg3_3.mat
- AOA_neg3_4.mat
- AOA_neg3_5.mat
- AOA_neg3_6.mat
- AOA_neg3_7.mat
- AOA_neg3_8.mat
- AOA_neg3_9.mat
- AOA_neg3_10.mat
- AOA_neg3_11.mat
- AOA_neg3_12.mat
- AOA_neg3_13.mat
- AOA_neg3_14.mat
- AOA_neg3_15.mat
- AOA_neg3_16.mat
- AOA_neg3_17.mat
- AOA_neg3_18.mat
- AOA_neg3_19.mat
- AOA_neg3_20.mat
- AOA_neg3_21.mat
- AOA_neg3_22.mat
- AOA_neg3_23.mat
- AOA_neg3_24.mat
- AOA_neg3_25.mat
- AOA_neg3_26.mat
- AOA_neg3_27.mat
- AOA_neg3_28.mat
- AOA_neg3_29.mat
- AOA_neg3_30.mat
- AOA_neg3_31.mat
- AOA_neg3_32.mat
- AOA_neg3_33.mat
- AOA_neg3_34.mat
- AOA_neg3_35.mat
- AOA_neg3_36.mat
- AOA_neg3_37.mat
- AOA_neg3_38.mat
- AOA_neg3_39.mat
- AOA_neg3_40.mat
- AOA_neg3_41.mat
- AOA_neg3_42.mat
- AOA_neg3_43.mat
- AOA_neg3_44.mat
- AOA_neg3_45.mat
- AOA_neg3_46.mat
- AOA_neg3_47.mat
- AOA_neg3_48.mat
- AOA_neg3_49.mat
- AOA_neg3_50.mat
- AOA_neg3_51.mat
- AOA_neg3_52.mat
- AOA_neg3_53.mat
- AOA_neg3_54.mat
- AOA_neg3_55.mat
- AOA_neg3_56.mat
- wake_scan_sample.m
I am trying to inegrate using an array with 56 numbers. The formula is rho*integral of uwake(20- uwake) where uwake is the array.
for i=1:totalpts
data=load(fullfile(dir_address,[ifname '_' num2str(i) '.mat']));
dP(i)=mean(data.dp) * (249.0); % differntial pressure % This data is in (inches of water) convert it into SI units
Pressure_Atm(i)=data.pAtm; % atomspheric pressure
Temp_Atm(i)=data.tAtm; % atomsheric temperature at each measured point
z(i)=data.zCurr * (0.0254); % position of the each point along the Z axis of the windtunnel % This data is in inches convert it into SI units
u_wake = sqrt((2*dP)/rho);
end
plot(u_wake,z);
Integrate = u_wake(20-u_wake);
Drag = rho*trapz(Integrate)
0 Comments
Answers (1)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!