Write a function in Matlab that calculates the normal depth for a trapezoidal section. Use the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a function in Matlab that calculates the normal depth for a trapezoidal section. Use the following call statement for your function: [yo] Normal Depth Trap (Q, b, m, So, n, Kn) where Q-discharge, b = bottom width, m = side slope (m:1, H:V), S. channel bed slope, n= Manning's coefficient, and K. = 1.0 for SI units (m and m/s) and 1.49 for English units (ft and ft/sec). The given inputs are sufficient; however, you may add others, if desired (e.g. to handle different units, see Homework 2 solution). Additionally, you may add outputs such as geometric properties of the channel at normal depth (area, wetted perimeters, top width, etc.). Use the Matlab function "fzero" to solve the non-linear equation (see demo script on Blackboard, Matlab documentation, and Homework 3). (a) Provide a printout of your code and (b) verify your code by solving the in-class example (a trapezoidal section with Q-100 cfs, b-20 ft, m 2, S. 0.001, and n=0.03). The solution to this problem is yo 1.938 ft. Include a print out of your script and/or the command window showing your solution for (b). Write a function in Matlab that calculates the normal depth for a trapezoidal section. Use the following call statement for your function: [yo] Normal Depth Trap (Q, b, m, So, n, Kn) where Q-discharge, b = bottom width, m = side slope (m:1, H:V), S. channel bed slope, n= Manning's coefficient, and K. = 1.0 for SI units (m and m/s) and 1.49 for English units (ft and ft/sec). The given inputs are sufficient; however, you may add others, if desired (e.g. to handle different units, see Homework 2 solution). Additionally, you may add outputs such as geometric properties of the channel at normal depth (area, wetted perimeters, top width, etc.). Use the Matlab function "fzero" to solve the non-linear equation (see demo script on Blackboard, Matlab documentation, and Homework 3). (a) Provide a printout of your code and (b) verify your code by solving the in-class example (a trapezoidal section with Q-100 cfs, b-20 ft, m 2, S. 0.001, and n=0.03). The solution to this problem is yo 1.938 ft. Include a print out of your script and/or the command window showing your solution for (b).
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
What were LEGO's main expectations and learnings from the relationship with Flextronics?
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Calculate the current and quick ratio at the end of eachyear.Note: Round your answers to 1 decimal place.b. Assuming a 365-day year for all calculations, compute thefollowing:i. The collection pe...
-
* For the network in Fig. 8.89, find i(t) for t > 0. 5 20 1 H t-0 100 v (
-
There is a T-bill futures contract expiring in 70 days being traded. The 91-day T-bill yield is 3.44%, the 161-day T-bill yield is 0.1%, and the risk-free rate is 0.05%. If the market price on the...
-
Use the comparative balance sheet from Application Problem 17-1 to complete this problem. Instructions: 1. Based on CyberOptics comparative balance sheet prepared in Application Problem 17-1,...
-
Bank reconciliation adjustment. Refer to Mini-Exercise 5.1. In Mini-Exercise 5.1, The balance in Happ, Inc.'s general ledger Cash account was $12,430 at September 30, before reconciliation. The...
-
how can Jeff Bezos learn from Howard Shultz in terms of Union
-
1.Analysts expect Walmart to have earnings per share of $5.60 for the coming year (year 1). Walmart intends to invest heavily in its online platform in the near term and therefore plans to retain and...
-
Meera is a hard worker and in 2022 earned a gross annual salary of $225,000. As a top performer, she also received a bonus just before the end of the year in the amount of $35,000. With Meera being...
-
Waterway Corp. is considering purchasing one of two new processing machines. Either machine would make it possible for the company to produce its products more efficiently than it is currently...
-
Answer the following questions and reflect on how they connect to one another. make a mind map to see where the nodes overlap. Who am I? What are my strengths? How do I work? Where do I belong? What...
-
Your grandmother has been putting $ 4 0 0 0 into a savings account on every birthday since your first ( that is , when you turnedone ) . The account pays an interest rate of 9 % . How much money...
-
A conducting plate held at 0V lies in the y-z plane at x=0. A second plate held at +100V lies in the y-z Plane at x = 1cm. A particle with mass 5 x10 -7 kg charged with -3C is released at rest from...
-
Company has spent $250,000 on research to develop a new computer game. The company plans to spend $1,400,000 on a machine to produce the new game. The shipping and installation costs for the new...
-
Ask students to outline the reasons why the various elements of culture (social structures and control systems, language and aesthetics, religion and other belief systems, educational systems, etc.)...
-
Assume that a company has in its inventory units of a particular product that were purchased at several different perunit costs. When some of these units are sold, explain how the cost of goods sold...
-
Apex Corporation operates in two locations: New York and Oregon. The LIFO method is used in accounting for inventories at the New York facility and the specific identification method is used for...
-
Assume that during the first year of Hatton Corporation's operation there were numerous purchases of identical items of merchandise. However, there was no change during the year in the prices paid...
Study smarter with the SolutionInn App