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

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,

 Risposta accettata

Torsten
Torsten il 4 Mag 2017
Modificato: Torsten il 4 Mag 2017
f=reshape(f',(Nx+1)*(Ny+1),1);
Best wishes
Torsten.

3 Commenti

nandine
nandine il 4 Mag 2017
Modificato: nandine il 4 Mag 2017
Thank you, butI still get the same error. It's weird cause I am pretty sure the number of elements has not changed, so don't understand how the number of elements has changed.
Torsten
Torsten il 4 Mag 2017
Modificato: Torsten il 4 Mag 2017
Report the dimension of the f-array, e.g. by the command "size(f)".
Best wishes
Torsten.
Actually, your earlier suggestion worked! thank you so much!

Accedi per commentare.

Più risposte (0)

Richiesto:

il 3 Mag 2017

Commentato:

il 4 Mag 2017

Community Treasure Hunt

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

Start Hunting!

Translated by