I have some data represented as a surface below with time and distance axes. I would like to fit this to all possible solutions for the diffusion equation that is:

dS/dt = D.d2S/dx2

where S is the signal representing concentration here, t is time and x is distance.

I think the pdepe in MATLAB can do this but I'm not sure how to implement it? I'm familiar with fitting data to a function which often is the analytical solution to diff. eqns, but am not sure how to solve and fit at the same time. Could someone explain/demonstrate this to me?

Example matrix data attached. All data(:,1) are on the distance axis and data(1,:) are on the time axis.

Thanks!

More Archishman Ghosh's questions See All
Similar questions and discussions