Help me to use PDEPE command?

1 vue (au cours des 30 derniers jours)
Jin goo
Jin goo le 27 Mai 2013
Hello all.
I want to solve a partial differential equation using PDEPE.
The partial differential equation is given by du/dt=D*x^(-2)d/dr(x^(2)du/dx)+p*u -K(t)*u
I think %function
function [c,f,s] = pdex1pde(x,t,u,DuDx)
c = 1;
f = D*DuDx;
s = (p-K(t))*u
but I am not sure about s=(p-K(t))*u.
Would you let me know the right function?
Thank you very much.

Réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by