# 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 career scold Q in m^3/s in an known muniment of round cross-section shown in the symbol beneath is ardent by Q = 2^3/2 D^5/2_c squareroot g (theta – 0.5 evil (2 theta))^3/2/8 squareroot evil theta (1 – cos theta)^5/2 where g = 9.8 m/s^2 is the gravitational regular and D_c is ardent by D_c = d/2 (1 – cos theta) Note that the units coercion theta in these equations is radians. Create at smallest individual duty touch coercion this equation, which has couple input, transversion d and predilection theta. Use the duty touchs to abuse career scold Q, and stereotype the board shown overhead. Note that in the board, theta is in degrees.

## Expert Retort

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

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

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