Answer:
The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.
Explanation:
Answer:
Explanation gives the answer
Explanation:
% Using MATLAB,
% Matlab file : fieldtovar.m
function varargout = fieldtovar(S)
% function that accepts single structure as input, assigning each
% of the field values to user-defined variables
fields = fieldnames(S); % get the field names of the input structure
% check if number of user-defined variables and number of fields in
% structure are equal
if nargout == length(fields)
% if equal assign each value of structure to user-defined varable
for i=1:nargout
varargout{i} = getfield(S,fields{i});
end
else
% if not equal display an error message
error('The number of output variables does not equal the number of fields');
end
end
%This brings an end to the program
Answer:
The difference of head in the level of reservoir is 0.23 m.
Explanation:
For pipe 1

For pipe 2

Q=2.8 l/s
![Q=2.8\times 10^{-3]](https://tex.z-dn.net/?f=Q%3D2.8%5Ctimes%2010%5E%7B-3%5D)
We know that Q=AV




head loss (h)

Now putting the all values

So h=0.23 m
So the difference of head in the level of reservoir is 0.23 m.