Student Reviews
( 5 Of 5 )
1 review
Video of Introduction to Matlab in Arabic 37 Numerical integration - Trapezoidal rule in Matlab course by Mohammed Mohammed channel, video No. 41 free certified online
This video shows the use of trapezoidal rule to numerical integrate tabulated data
The code below manually calculates the flow rate of the example solved in the video:
r0.01[0 1 2 3 4 5]; %radius in m
v[6.4 6.1 5.2 4.4 2.0 0.0]; %velocity in m/sec
rvv.r; % radiusvelocity in m2/sec
% calculate the area of each trapezium
for i1:length(r)-1
y(i)mean([rv(i+1),rv(i)]);
x(i)r(i+1)-r(i);
xy(i)x(i)y(i);
end
%Calculate the total flow rate in m3/sec
Qsum(xy)2pi