From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: PDEPE boundary conditions ul equals ur
Date: Fri, 7 Feb 2014 12:28:09 +0000 (UTC)
Organization: Hanoi National Univ of Science
Lines: 23
Message-ID: <ld2jgp$mc3$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1391776089 22915 (7 Feb 2014 12:28:09 GMT)
NNTP-Posting-Date: Fri, 7 Feb 2014 12:28:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1176673
Xref: comp.soft-sys.matlab:808732

Hi all,

I am trying to solve a pdepe of the form: 
du/dt = A*du/dx;

However, the boundary condition is: u(xl,t) = u(xr,t) for all t.

I tried to put 
ql = -1/A;
qr = -1/A;
pl = ul;
pr = ur;

then the code some how works but this does not satisfy the boundary condition that I want. 

I tried to put them all the 0 then the code show the error:
Error using daeic12 (line 77)
This DAE appears to be of index greater than 1.

Could you please advise me in this case, any help will be much appreciated.

Best regards,