First let us look at what the problem asks and then we shall see how it can be computed using MATLAB. The problem is on rate equations and uses simple calculus to solve these equations.

Simply put, what is happening is that initially the storage tank has some water (half-full) and the vertical height of the water is y (which is assumed to be y = 0 to start with.). So our "origin" is y = 0 and y changes as the water level in the tank changes. The water level in the tank will change according to the outflow (water leaving) and inflow (water entering) of water.
It is given that outflow is at the rate Q = 400m3/day and inflow is at a sinusoidal rate of 3Q sin2t m3/day. [Here d =day, a unit of time]. We are interested in computing the rate at which the water height (y) changes w.r.t. time i.e. dy/dt.
Important note: UNITS.
y = height of water level measured in meters (m).
Q= Rate at which a volume of water is entering/leaving (so its volume/time thus m3/day)
A= cross sectional area of the tank --- always constant--- measured in m2.
Please note that dy/dt has units: length/time (measured in meters/day)

The equation to compute dy/dt follows easily. The height changes due to difference in outflow and inflow rates which is exactly what the equation given states.
Note: Since we are computing dy/dt i.e. rate of change of height, the volume rate must be divided by cross-sectional area A because Volume = ...

Solution Summary

The expert plots the water flowing in and out of a tank. The Matlab programming is analyzed.

Consider a finite-support signal
x(t) = t 0<=t<=1
and zero elsewhere.
- Using Matlab, plot x(t+1)
- Using Matlab, plot x(-t+1)
- Add the above two signals together and plot the new signal y(t).

Write the simplest possible one-dimensional "molecular dynamics code" for two particles?
I use MATLAB, so I want a MATLAB code for molecular dynamics or velocity verlet algorithm code.
I need to determinate x1, x2 and v1, v2 in different times.
Some websites may help you:
[http://www.nada.kth.se/~tomaso/miklab2007/lab2_4h

I need a detailed script in order to show this works in MATLAB.
----> Kernighan and Ritchie, who created the C language, advise that, "The first program to write in any language is the same for all languages: Print the words "hello, world". This is the basic hurdle; to leap over it you have to be able to create program tex

Hi, l want the Fourier series of this function by hand and using Matlab or any mathmatical program or programming language.
f (x) = 0, -π < x < 0
cos x 0 ≤ x < π
Find the Fourier series using Matlab?

Write the following MATLAB functions
(a) function l,u¸=naivege(a) that returns the lower triangular matrix L and an upper triangular matrix U such that A=LU, obtained by Gauss Elimination without pivoting.
(b) function x=utrisol(u,b) that solves the upper tridiagnonal system Ux=b using backward substitution.
(c) Function x=l

Hi,
I need help in using Matlab to build an m file for
solving non-linear equations using the Newton-Raphson
method (or another recommended method.) I need a clear
explanation of the process of creating an m file, and
also using it to find the roots of the following two
equations as examples:
1) f(x) = exp(-x) - sin(

1) G(s) =
Use Matlab and obtain Nyquist Plot
2) G(s) =
Kv1=0.325
Kv2=0.45
Note: K does not equal Kv
Determine the phase margin, gain margin, and closed-loop bandwidth for each case. Determine these both graphically, from the appropriate bode plots, and using the Matlab functions margin and bandwidth