if I have model in partial differential equation with Neumann boundary conditions, how can i do the curve-fitting with experimental data? I've planned to use optimization toolbox with lsqcurvefit in matlab, but I don't know how to code the function if the model in pde with neumann boundary conditions.should i simplify the pde first or i can make a coding with pde form. someone told me that i should use newton-raphson but i read that for newton-raphson, f(x) should equal to zero. really hope someone can guide me on this manner since i am not in mathematics area. and also just a beginner in matlab.