Manning's equation can be used to compute the velocity 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 following data are available for five channels:
n | S | B | H |
0.036 | 0.0001 | 10 | 2 |
0.020 | 0.0002 | 8 | 1 |
0.015 | 0.0012 | 20 | 1.5 |
0.030 | 0.0007 | 25 | 3 |
0.022 | 0.0003 | 15 | 2.6 |
Write an M-file that computes the velocity for each of these channels. Enter these values into a matrix where each column represents a parameter and each row represents a channel. Have the M-file display the input data along with the computed velocity in tabular form where velocity is the fifth column. Include headings on the table to label the columns.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.