Help me to use PDEPE command?

1 次查看(过去 30 天)
Jin goo
Jin goo 2013-5-27
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by