%% WaterTank MATLAB Script
syms h(t)Dh = diff(h);A = 20; a = 2; b = 5; U = 0:0.1:1.0; V = 1;watertank = 1*diff(h,t) - (1/A)*b.*V - (1/A)*a*sqrt(h) == 0;soln = dsolve(watertank, h(0) == 0, Dh(0) == 0);figure(1), clffplot(soln)figure(2), clfplot(U,Y)
Zulauf means Inlet (denoted in the script as 'U')
Fullstand means Height of the tank (denoted in the script as 'h')
Best Answer