How do I plot a solution to a 2nd order PDE?

I have a PDE of form d[g(x,y)]/dx = A*d[g(x,y)]/dy+B*d^2[g(x,y)]/dy^2+C*g(x,y)
I don't think a closed form solution is possible, but I'd like to use numerical methods to create a 3D plot of the value of g with respect to (x,y). I'm a bit of a MATLAB beginner, so any advice would be much appreciated!

Respuestas (1)

Torsten
Torsten el 25 de Abr. de 2017

0 votos

Use MATLAB's "pdepe" where you interpret "t" as your x-variable.
Best wishes
Torsten.

2 comentarios

Samson Mataraso
Samson Mataraso el 25 de Abr. de 2017
Unfortunately pdepe only solves the PDE in 1-D, but I am looking for a 2D solution (a plot of g as a function of both x and y).
Torsten
Torsten el 25 de Abr. de 2017
pdepe solves PDEs in 2d, namely t and x.
Interpret your x as t and your y as x.
Best wishes
Torsten.

Iniciar sesión para comentar.

Productos

Preguntada:

el 25 de Abr. de 2017

Comentada:

el 25 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by