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(adsbygoogle = window.adsbygoogle || []).push({});

S_{t}= S_{t-1}+ P_{t}- ET_{t}, S_{t-1}+ P_{t}- ET_{t}≤ S_{max}

= S_{max}, S_{t-1}+ P_{t}- ET_{t}> S_{max}

then

R_{t}= 0, S_{t-1}+ P_{t}- ET_{t}≤ S_{max}

= P_{t}- (S_{max}- S_{t-1}) - ET_{t}, S_{t-1}+ P_{t}- ET_{t}> S_{max}

P_{t}= rainfall depth

ET_{t}= evapotranspiration rate

S = Retained rainwater depth in substrate

S_{max}= 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.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Help: MATLAB time step function

Loading...

Similar Threads - Help MATLAB step | Date |
---|---|

Matlab MATLab: Not enough inputs for nlinfit | Nov 16, 2017 |

Matlab Help needed to fix a matlab code | Nov 8, 2017 |

New to Matlab, help with vectors | Feb 20, 2016 |

MATLAB changing axis labes on step()/margin() functions help required please | Oct 27, 2011 |

Need help graphing a step function within Matlab | Aug 29, 2011 |

**Physics Forums - The Fusion of Science and Community**