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.
data=load(fullfile(dir_address,[ifname '_' num2str(i) '.mat']));
dP(i)=mean(data.dp) * (249.0);
Pressure_Atm(i)=data.pAtm;
z(i)=data.zCurr * (0.0254);
u_wake = sqrt((2*dP)/rho);
Integrate = u_wake(20-u_wake);
Drag = rho*trapz(Integrate)