How can I implement the lsqnonlin&lsqcurvefit function to find one parameter of the PDE without knowing the analytical solution?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have a nonlinear pde model which is mainly
, and I do have the numerical solutions corresponding to some different time values, but I am not able to get its analytical solution.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/262014/image.png)
I have been trying to use 'the lsqnonlin and lsqcurvefit functions' in Matlab to estimate one of my equation parameters. I have already defined the parameter \lambda and K where are in the above equation, and I would like to estimate the parameter D as setting the lsqcurvefit function. So I know that least square method work as below;
[name]=lsqcurvefit(handle,x0,xdata,ydata);
I have xdata (time points) and ydata (results corresponding to time points) and also x0, which is the initial value, but I could not able to set the function handle part because I do not have the analytical solution. I have a trouble at that point to develop the code.
I will be so glad indeed if someone can help me.
Regards,
Emine
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Boundary Conditions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!