Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
nandine
nandine am 3 Mai 2017
Kommentiert: nandine am 4 Mai 2017
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,

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by