Xmesh and Pdepe

Hi everyone
I am currently trying to integrate the diffusion equation in spherical symmetry using the pdepe tool. My code works fine and the results are satisfactory. However, the answer seems to depend on the number of points I include in the spatial mesh (keeping the same a and b boundaries). Does anyone know why? Should I keep increasing the mesh until the answer doesn't depend on the number of points?

Answers (0)

Categories

Find more on Partial Differential Equation Toolbox in Help Center and File Exchange

Asked:

on 12 Jun 2012

Community Treasure Hunt

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

Start Hunting!