What is the algorithm used by del2 at the boundaries of a matrix in MATLAB?

3 views (last 30 days)
The help page on del2 details the algorithm used for the interior points of any matrix. However, I am trying to use del2 to model heat flow with adiabatic boundary conditions. I would like to know how del2 is computing the gradient at the boundaries in an equal amount of detail.

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 21 Apr 2020
Try either of:
edit del2
type del2
HTH
  2 Comments
Eli Iglesias
Eli Iglesias on 21 Apr 2020
Thanks! Doesn't display an algorithm in a nice form (like on the support page for del2) but I can parse out more or less what it is doing.
Bjorn Gustavsson
Bjorn Gustavsson on 21 Apr 2020
On the other hand: "read the source Luke".
There you see what it actually does and the function isn't exactly long. I couldn't be bothered to figure out how that del2 works for your PDE, and even if I tried and misunderstood...

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!