필터 지우기
필터 지우기

How can I solve the following PDE?

조회 수: 1 (최근 30일)
Yang He
Yang He 2023년 4월 10일
편집: Torsten 2023년 4월 10일
$\dotA(t)=rA(t)-\frac{A(t)^2}{4c}+1$
$\dotB(t)=rB(t)-aA(t)$
$A(T)=q,B(T)=0.$
Suppose that r=0.02, a=3, c=1,q=1.5.
How to write a code to solve it.

답변 (2개)

Alan Stevens
Alan Stevens 2023년 4월 10일
Try setting tau = T - t, so that dA/dt = -dA/dtau etc, and A(T) , B(T) become A(0), B(0). i.e. turn the boundary value problem into an initial value problem.

Torsten
Torsten 2023년 4월 10일
편집: Torsten 2023년 4월 10일
MATLAB allows you to integrate backwards in time simply by defininig tspan starting with T and ending with 0.
And why do you say it's a PDE ? As far as I can see from your description, it's an ODE.

카테고리

Help CenterFile Exchange에서 PDE Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by