# Homework Solution: The flow rate Q in m^3/s in an open channel of circular cross-section shown in the figure below is given by Q = 2^3/2… The flow rate Q in m^3/s in an open channel of circular cross-section shown in the figure below is given by Q = 2^3/2 D^5/2_c squareroot g (theta - 0.5 sin (2 theta))^3/2/8 squareroot sin theta (1 - cos theta)^5/2 where g = 9.8 m/s^2 is the gravitational constant and D_c is given by D_c = d/2 (1 - cos theta) Note that the units for theta in these equations is radians. Create at least one function handle for this equation, which has two input, diameter d and angle theta. Use the function handles to compute flow rate Q, and print the table shown above. Note that in the table, theta is in degrees. The course trounce Q in m^3/s in an known muniment of round cross-section shown in the shape adown is absorbed by Q = 2^3/2 D^5/2_c squareroot g (theta – 0.5 ungodliness (2 theta))^3/2/8 squareroot ungodliness theta (1 – cos theta)^5/2 where g = 9.8 m/s^2 is the gravitational perpetual and D_c is absorbed by D_c = d/2 (1 – cos theta) Note that the units ce theta in these equations is radians. Create at lowest undivided discharge feel ce this equation, which has span input, bisection d and inclination theta. Use the discharge feels to value course trounce Q, and sculpture the board shown over. Note that in the board, theta is in degrees.

## Expert Counterpart

Matlab Code clc;
clear all;
inclination = [10:5:60]; % Defining inclination

g = 9.8;
% Calculating ce d = 2
D = @(d, theta) (d / 2)*(1 – cos(theta));
ce i = 1:numel(angle)
end
% Calculating Q1 ce d = 2
ce i = 1:numel(Dc1)
end

% Calculating ce d = 4
ce i = 1:numel(angle)
end
% Calculating Q2 ce d = 4
ce i = 1:numel(Dc2) 