Thank you @ttokoro . What is purpose of using third brackets " [ ]". Is this for assigning the matrix values in each corresponding cells inside the "Ans"
In fact, the error message reveals the cause and also gives the hint to the solution of the problem: The variables for the independent variables (x, y) must (unfortunately) be unitless. Only the dependent variable (z), i.e. the function result, may have a unit.
So omit the unit meter at the range variables and add them when calling the function.
The plot takes "endless" to finish because the function seems to be defined quite inefficient.
You sure should consider to implement the improvement I suggested in another thread of yours which at least speeds up the calculation for the factor 5.
Personally I would prefer using CreateMesh() instead of range variables