Question: it says my solution script was not found. please fix my matlab code: Liquid flow in tanks is described by a differential equation that has
it says my solution script was not found. please fix my matlab code:
Liquid flow in tanks is described by a differential equation that has the following
form:
At Find how long it takes for all the water to flow out assign the
result to which is equivalent to
IMPORTANT: This problem should be solved using an event function.
function timetoempty tankflowtime
;
;
tspan;
options odesetEvents @emptyevent;
odedhdt tspan, h options;
timetoempty te;
plot t h;
xlabelTime;
ylabelWater Level h;
titleWater Level vs Time';
function value isterminal, direction emptyevent t h
value ;
isterminal ;
direction ;
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
