Importing a two variable function into pdepe

1 view (last 30 days)
Matthew Hunt
Matthew Hunt on 20 May 2020
Answered: Anmol Dhiman on 8 Jul 2020
I want to solve a diffustion pde
I understand how to do this if Q is a single variable function using interp1, but I don't understand how this is done for 2 variables.

Answers (1)

Anmol Dhiman
Anmol Dhiman on 8 Jul 2020
Hi Matthew,
You can use interp2 for 2 variables.
Anmol Dhiman


Community Treasure Hunt

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

Start Hunting!