how to write the boundary values for ode

조회 수: 10 (최근 30일)
Mallikarjuna M
Mallikarjuna M 2022년 2월 25일
편집: Torsten 2022년 2월 25일
i have the boundary values like
a(0)=1, a'(1)=0
and
b(1)=1, b'(0)=0
is this following code correct for my boundary
function [pl,ql,pr,qr] = pdex4bc(~,ul,~,ur,~)
pl = [ul(1)-1;0];
ql = [0;1];
pr = [0;ur(2)-1];
qr = [1;0];
  댓글 수: 1
Torsten
Torsten 2022년 2월 25일
편집: Torsten 2022년 2월 25일
If f = DuDx and a=u(1), b=u(2), this should be correct.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by