This question shoud be solved by using Matlab. The tank in a water tower has the
ID: 3884986 • Letter: T
Question
This question shoud be solved by using Matlab.
The tank in a water tower has the geometry shown in the figure (top and lower portions are shaped as cylinders). Inside the tank there is a float that indicates the level of the water in the tank. Write a script file that determines the volume of the water in the tank from the position (height h) of the float. The input to the script file is the value of h in m, and the output is the volume of the water in m^3 (use an fprintf command to display your output). Execute your program for the following cases a) h = 18 m b) h = 22 mExplanation / Answer
if ~fuzzychecktoolboxinstalled('simulink') disp('Simulink(R) is required to run this example.') return end open_system('sltankrule');
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.