- #1
TheodoreCT
- 2
- 0
Hi guys I'm new to MATLAB but now i need to use it for my study. I've tried to learn by myself to run it but unfortunately it failed, so I need some guidance on how to run following time step function in MATLAB
St = St-1 + Pt - ETt, St-1 + Pt - ETt ≤ Smax
= Smax, St-1 + Pt - ETt > Smax
then
Rt = 0, St-1 + Pt - ETt ≤ Smax
= Pt - (Smax - St-1) - ETt, St-1 + Pt - ETt > Smax
Pt = rainfall depth
ETt = evapotranspiration rate
S = Retained rainwater depth in substrate
Smax = maximum retention capacity
R = runoff
it is a hourly time step function, hourly rainfall data for a year will be inserted to the function
i would be really appreciated if anyone could help me.
St = St-1 + Pt - ETt, St-1 + Pt - ETt ≤ Smax
= Smax, St-1 + Pt - ETt > Smax
then
Rt = 0, St-1 + Pt - ETt ≤ Smax
= Pt - (Smax - St-1) - ETt, St-1 + Pt - ETt > Smax
Pt = rainfall depth
ETt = evapotranspiration rate
S = Retained rainwater depth in substrate
Smax = maximum retention capacity
R = runoff
it is a hourly time step function, hourly rainfall data for a year will be inserted to the function
i would be really appreciated if anyone could help me.