3d绘图的matlab中的2d矩阵

use*_*276 7 matlab plot

我有一个MxN矩阵,Z和一些变量h.该矩阵表示函数f(x,y)的解的点.h是点之间的间距.例如:

Z(x/h,y/h) = (some value in the Z direction), where x and y are some multiple of h
Run Code Online (Sandbox Code Playgroud)

域为0至M*h,范围为0至N*h.我想对矩阵定义的解决方案进行三维表示.该图应与使用pdetool生成的图类似.我如何在Matlab中执行此操作?