Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2.10 Manning\'s equation can be used to compute me velo ity of water in a rectan

ID: 1765698 • Letter: 2

Question

2.10 Manning's equation can be used to compute me velo ity of water in a rectangular open channel: where U= velocity (m/s), S = channel slope, n-roughness coefficient. B- width (m), and H depth (m). The follow- ing data are available for five channels: 0 035 0 020 0015 0.030 0.022 0.0001 0 0002 0.0010 0.0007 00003 20 24 15 2 1.5 2.5 Store these values in a matrix where each row represents one of the channels and each column represents one of the param- eters. Write a single-line MATLAB statement to compute a column vector containing the velocities based on the values in the parameter matrix

Explanation / Answer

A is a 4x4 matrix

B is 4x1 matrix

A = [0.035 0.0001 10 2; 0.020 0.0002 8 1; 0.015 0.0010 20 1.5; 0.030 0.007 24 3; 0.022 0.0003 15 2.5]

for i=1:4

B (i,1) = ((A(i,i+1)^0.5)*((A(i,i+2)*A(i,i+3))/(A(i,i+2)+2*A(i,i+3)))^(2/3))/A(i,i)

end