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

Manning\'s equation can be used to compute the velocity of water in a rectangula

ID: 1847936 • Letter: M

Question

Manning's equation can be used to compute the velocity of water in a rectangular open channel: U = s / n (BH / B + 2H)2/3 where U = velocity [m/s], S = channel slope, n = roughness coefficient, B = width [m], and H = depth [m]. The following data are available for five channels: Store these values in a matrix where each row represents one of the channels and each column represents one of the parameters. 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 = [0.035 0.0001 10 2; 0.020 0.0002 8 1; 0.015 0.0010 20 1.5; 0.030 0.0007 24 3; 0.022 0.0003 15 2.5]; U = sqrt(A(:,2))./A(:,1).*(( (A(:,3).*A(:,4))./(A(:,3) + 2*A(:,4)) ).^2).^(1/3)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote