nonlinear 2D elliptic problem u_xx+u_yy= f(x,y)

1 次查看(过去 30 天)
x is in (0,1) , y (0,1) and u =0 pn boundaries.
My problem is equivalent to this matrix formulation: (attached).
However, I am stuck on the last part of my code! If anyone can take look and tell me, how to correct it,

采纳的回答

Torsten
Torsten 2017-5-4
编辑:Torsten 2017-5-4
f=reshape(f',(Nx+1)*(Ny+1),1);
Best wishes
Torsten.
  3 个评论
Torsten
Torsten 2017-5-4
编辑:Torsten 2017-5-4
Report the dimension of the f-array, e.g. by the command "size(f)".
Best wishes
Torsten.
nandine
nandine 2017-5-4
Actually, your earlier suggestion worked! thank you so much!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by