Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) Manning's equation can be used to compute the velocity of water in a rectangular open channel: 2/3 VS U = BH B + 2H
1) Manning's equation can be used to compute the velocity of water in a rectangular open channel: 2/3 VS U = BH B + 2H = = = n where U = velocity (m/s), S = channel slope, n = roughness coefficient, B = width (m), and H = depth (m). The following data is available for five channels. S B H 0.0350 0.0001 10.0000 2.0000 0.0200 0.0002 8.0000 1.0000 0.0150 0.0010 20.0000 1.5000 0.0300 0.0007 24.0000 3.0000 0.0220 0.0003 15.0000 2.5000 Write a MATLAB script, Manning.m, which defines 4 vectors to represent this data and then computes and displays the vector of velocities using the formula above and array arithmetic. Rather than typing in these values you can copy and paste the data into a matrix as: A [0.0350 0.0001 10.0000 2.0000 0.0200 0.0002 8.0000 1.0000 0.0150 0.0010 20.0000 1.5000 0.0300 0.0007 24.0000 3.0000 0.0220 0.0003 15.0000 2.5000] then define the appropriate variables as columns of the matrix. a =
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started