For a partial hemispherical trough shown in Fig. 2 below, volume is a function of bottom radius and
height given by the formula: V - h. (3r² - h2) while upper circle radius'd is: c - V-PR
[All the unitsale in milimeties
Figure 2: A partial hemispherical trough with dimensions
When water is filled in the trough, the height is measured from the bottom location B. The
maximum height upto which water can be filled is the location U. Height h can vary from 0
Develop a script file with appropriate program in Matlab that takes radius as the input value,
displays the value of '2 and produce (i) a table and (ii) a plot; which shows change of weight of water
in the trough with respect to gradual change in height.
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
fprintf('For r=%4.2f, the value of c is %4.2f\n',r,c);
V=1/3*pi*h.*(3*r^2-h.^2); %the dot allows you to multiply two vector
%of the same size in matlab component by component...