Help me to use PDEPE command?

1 Ansicht (letzte 30 Tage)
Jin goo
Jin goo am 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.

Antworten (0)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by