Question

Chapter 5, Problem 16P 12 Bookmarks Show all steps: OFF Problem Water is flowing in a trapezoidal channel at a rate of Q= 20

Please solve in MATLAB and provide screenshots of the code and a copy of the code. DO PART B ONLY.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

>>p 1.5156 fx >> IIIIIIIIIIIIIIIIIIIIIII junk. mx + clc clear close g=9.81; Q=20; f=@ (v) 1-((Q^2* (3+y))/(g* (3*y+y^2/2)^3))

clc
clear
close
g=9.81; Q=20;
f=@(y)1-((Q^2*(3+y))/(g*(3*y+y^2/2)^3));
xl=0.5; xu=2.5;
% Applying bisection rule
if f(xl)*f(xu)>0
error('Choose diffefent initial points')
else
p = (xl + xu)/2;
err = abs(f(p));
i=0;
while err > 0.01 && i<=10
if f(xl)*f(p)<0
xu = p;
else
xl = p;
end
p = (xl + xu)/2;
err = abs(f(p));
i=i+1;
end
end

Please do like the solution

Add a comment
Know the answer?
Add Answer to:
Please solve in MATLAB and provide screenshots of the code and a copy of the code....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • using matlab code please 5.2 Determine the real root of f(x) = 5x? - 5x2 +...

    using matlab code please 5.2 Determine the real root of f(x) = 5x? - 5x2 + 6x-2: a. Graphically. b. Using bisection to locate the root. Employ initial guesses of x= 0 and xy = 1 and iterate until the estimated error &, falls below a level of Es = 10%.

  • (I) For a trapezoidal channel with a fixed cross-sectional area of 10m2, bottom width b, depth...

    (I) For a trapezoidal channel with a fixed cross-sectional area of 10m2, bottom width b, depth y, and side slopes of 2H:1V, confirm that the most efficient (optimal) cross-section occurs with b / У = 21 V1+ m2-m | , where ,n=2 in this case. To do this, it is easiest to make a Matlab or Excel program with different b/y ratios and 10m2 cross-sectional area, and determine the relative flow rates. Then normalize this by the optimal flow rate...

  • I need the Matlab code please. Problem Statement #2: ds (c) using the To the same...

    I need the Matlab code please. Problem Statement #2: ds (c) using the To the same initial guesses as in (b). 5.9) The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation 1.575701 x 105 In of =-139.3441144 20 34411 + - Ta where mum const! of the 1.243800 x 100 6.642308 x 107 1 = 1 72 8.621949 x 1011 Deva ks = 5.12 car where Oxf = the saturation concentration of dissolved oxy- gen...

  • 14.13 (a) only Spreadsheet from HW 3: Manning: 1. Numerically solve for the normal depth using...

    14.13 (a) only Spreadsheet from HW 3: Manning: 1. Numerically solve for the normal depth using either MS-Excel or Matlab. Hint: your spreadsheet for critical depth in HW3 is a good place to start. 14.13 The channel in Problem 14.7 is excavated in smooth rock to a bed slope of 0.2%. Deter- mine the (a) normal depth of flow, (b) critical slope, and (c) state of flow in the channel. 14.7 A trapezoidal channel has a bed width of 3.5...

  • Please solve clearly do not use matlab or something like these programmes. Q-5) Stream cross-sectional areas...

    Please solve clearly do not use matlab or something like these programmes. Q-5) Stream cross-sectional areas (A) are required for a number of tasks in water resources engineering, includin;g flood forecasting and reservoir designing. Unless electronic sounding devices are available to obtain continuous profiles of the channel bottom, the engineer must rely on discrete depth measurements to compute A. An example of a typical streanm cross-section is shown in the following figure. The data points represent locations where a boat...

  • can someone please explain how this question is solved with clear working out. 1a) Using the...

    can someone please explain how this question is solved with clear working out. 1a) Using the energy diagram explain the Standard Step method and how this method is used to,calculate water surface profiles in sub-critical flow. First begin by listing the variables whose values are normally known or given) Then using the energy diagram list the calculation method step by step. Explain the gradually varied flow assumption. 1b) A trapezoidal channel with a bottom width of 6 m, side batter...

  • Can you please only solve for 6,7,8, and 9 A channel shape is used to support...

    Can you please only solve for 6,7,8, and 9 A channel shape is used to support the loads shown on the beam. The dimensions of the shape are also shown. Assume beam and determine B 3 ft, L 29 ft, P 2150 lb, w =900 lb/ft b 13 in d=10 in t=0.750 in. Consider the entire 12 t length of the (a) the maximum tension bending stress at any location along the beam, and (b) the maximum compression bending stress...

  • The Depth Gauge Problem Liquids are often stored in elliptical storage tanks as shown below. To...

    The Depth Gauge Problem Liquids are often stored in elliptical storage tanks as shown below. To measure the volume of liquid in the tank, a depth gauge (measuring stick) can be used. It is inserted into an opening at the top and the level of liquid on the gauge can be used to determine the amount of liquid in the tank. The tank has width w, height h and length len (all in meters). In the example output shown below,...

  •    number 7 is what I'm asking about here's Macon Ga table data

       number 7 is what I'm asking about here's Macon Ga table data dit View History Bookmarks People Window Help 19% E) Sat Mar 23 4:5 Invalid xESCPXWater Filel/Users/Steven/Downloads/ENVE%204435%20Fall%202016%20Exam%20%232%20Practice%20Problems%20[Post].pdf a You have been asked to design a culvert to handle the discharge for a 50-year storm on a 19-acre catchment in Macon, Georgia Neighborhoods constitute 60% of the land use with the remainder being open space lawns, average condition, with clay soils and average slope. The catchment is characterized hydraulically by...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT