Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Matlab 此Pdesurf错误消息是什么意思?_Matlab_Mesh_Pde - Fatal编程技术网

Matlab 此Pdesurf错误消息是什么意思?

Matlab 此Pdesurf错误消息是什么意思?,matlab,mesh,pde,Matlab,Mesh,Pde,我跑 我得到 PDESURF需要输入PDESURF(p,t,u)u必须是与p长度相同的列向量,或者是与t长度相同的行向量。我不知道你的mesh.p和mesh.t变量有多大,所以我不能肯定,但可能是因为你需要变换向量。通过将代码更改为,可以更正错误 Error using pdesurf (line 25) Illegal solution format. 如果这不起作用,那么您需要确保 pdesurf(mesh.p, mesh.t, ufun(0:0.01:1,0:0.01:1)') % No

我跑

我得到


PDESURF
需要输入
PDESURF(p,t,u)
u
必须是与
p
长度相同的列向量,或者是与
t
长度相同的行向量。我不知道你的
mesh.p
mesh.t
变量有多大,所以我不能肯定,但可能是因为你需要变换向量。通过将代码更改为,可以更正错误

Error using pdesurf (line 25)
Illegal solution format.
如果这不起作用,那么您需要确保

pdesurf(mesh.p, mesh.t, ufun(0:0.01:1,0:0.01:1)') % Note the transpose


转置u

size(p,2)==size(u,1)

谢谢你的回答!我现在更详细地解释了我的问题。所以你的第二个条件在我的情况下成立。
size(t,2)==size(u,2)
size(p,2)==size(u,1)
pdesurf(mesh.p, mesh.t, u')