MATLAB: Nonlinear 2D elliptic problem u_xx+u_yy= f(x,y)

2d possoin equation matrix dimensions

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,

Best Answer

f=reshape(f',(Nx+1)*(Ny+1),1);
Best wishes
Torsten.
Related Question