From: Burcu on
hi,

i also tried this one;

%sol = pdepe(m,@cozum,@cozumIC,@cozumBC,x,t); instead of this line, used below
sol = pdepe(2,@(x, t, u, DuDx) cozum(x, t, u, DuDx, 0),@cozumIC,@cozumBC,x,t);

it seems none of them is working and gives exact same error:"dudx is undefined".

thank you for ur helps a lot.

best,
burcu
From: Burcu on
hi,

yeah, i tried ur version and also this line:
%sol = pdepe(m,@cozum,@cozumIC,@cozumBC,x,t);
sol = pdepe(2,@(x, t, u, DuDx) cozum(x, t, u, DuDx, 0),@cozumIC,@cozumBC,x,t);


so far, errror is the same.

and one more update: if i use all code in seperate files, error is only one: "dudx is undefined".

if i use all codes in one .m file errors are different: here are the errors
1) Error using ==> daeic12 at 77
This DAE appears to be of index greater than 1.

2)Error in ==> ode15s at 395
[y,yp,f0,dfdy,nFE,nPD,Jfac] = daeic12(odeFcn,odeArgs,t,ICtype,Mt,y,yp0,f0,...

3)Error in ==> pdepe at 320
[t,y] = ode15s(@pdeodes,t,y0,opts);

4)Error in ==> mypde at 6
sol = pdepe(m,@coz,@cozIC,@cozBC,x,t);

:(((( i have no idea what is going on....
From: Burcu on

it seems there is a way to fix DEA error, but I did not get it..
http://www.mathworks.com/support/solutions/en/data/1-4DANUH/?solution=1-4DANUH
From: Burcu on
please ignore previous message, it seems that solution for odes not for pdes...

and one more update, errors in l=this link are the same with mine: " http://www.mathworks.fr/support/solutions/en/data/1-AHE4PX/index.html?product=SL&solution=1-AHE4PX "
From: Burcu on
u can ignore above message..

the following link shows the exact errors i have in my code, so I got the explanation now...:
http://www.mathworks.fr/support/solutions/en/data/1-AHE4PX/index.html?product=SL&solution=1-AHE4PX