77 457
Assignments Done
98,9%
Successfully Done
In July 2019

Answer to Question #46216 in MatLAB | Mathematica | MathCAD | Maple for Jason Will

Question #46216
Function Name: erosion
Inputs (3): - (double) An MxN array representing the heights of the topsoil in a particular area
- (double) An MxN array representing the heights of the bedrock in the same area underneath the topsoil
- (double) An erosion factor
Outputs (1): - (double) An MxN array representing the new heights of the topsoil with the applied erosion factor
Function Description:
Write a function that takes in arrays representing the heights of topsoil and bedrock of the same area and an erosion factor, and outputs the new heights of topsoil with the applied erosion factor. Assume that the topography is uniformly eroded by subtracting the erosion factor from each element of the topsoil array. Since topsoil erodes much more easily than bedrock, the erosion factor can completely erode the topsoil but should not affect the bedrock. For example, for a particular spot that has a topsoil of 34, bedrock of 0, and erosion factor of 26, the new height should be 10 and not 8.
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions