MATLAB Answers

MATLAB code for flood model

14 views (last 30 days)
yusuf syed
yusuf syed on 3 Feb 2020
Commented: Hiro Yoshino on 6 Feb 2020
Need help with a MATLAB code which can act as a flood model. If the elevation height of a region is given and the amount of rainfall that falls in that terrain is given, the code should be able to give the flooded depth.I know that it involves water flowing from high level to low level but not able to code it properly.Please help
Thank You


Sign in to comment.

Answers (1)

Hiro Yoshino
Hiro Yoshino on 4 Feb 2020
You should define your (mathematical expression) model first, then code follows.
What kind of model do you want to convert into a code?


yusuf syed
yusuf syed on 5 Feb 2020
Thank you very much Hiro.Actually,there is no mathematical expression avilable.I just want to make a code which can give me flooding depths in a region if heavy rainfall occurs.My input to the code would be the rainfall value and the digital elevations of the region where flooding is required.The output should be the flooding depths(if any).The elevation where there is no flooding should be returned as zero value by the code.If you need any other information,please let me know.
Thank You
Hiro Yoshino
Hiro Yoshino on 6 Feb 2020
I wonder how you can write code that predicts what you want without the corresponding mathematical expression (model)?
If you have enough number of the input and the output data, you can them make a use of Machine Learning approach. In this case, the mode you create will be a black box, i.e., you cannot get any insight or interpretation out of the model.
May I ask you a question?
What level of help are you expecting?
If you are just not familiar with MATLAB, you should go to MATLAB onramp - which is a free online trainning.

Sign in to comment.

Sign in to answer this question.

Translated by