Question: Matlab commands, please show code and outputs clearly. thank you in advance! 2 Matrix Manipulation (12 points) Manning's equation can be used to compute the

2 Matrix Manipulation (12 points) Manning's equation can be used to compute the velocities of water in a rectangular open channel: U=nS(B+2HBH)2/3 Where U is the velocity in m/s,S is channel slope, n is roughness coefficient, B is width (m) and H is height (m). The following data are available for five channels: Complete the following: 1. Store these values in a matrix where each row represents one of the channels and each column represents one of the parameters. 2. Write MATLAB commands to compute a column vector containing the velocities based on the values in the parameter matrix. Report the column vector of velocities as your answer. (Bonus 2 points if you use a single-line MATLAB command)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
