That is probably straightforward to do. It would help if we could have your data and equations. You can post your equations here Please highlight them and format them with the [{}Code] button. Use the save function to create a ‘.mat’ file of your data, then attach it here using the ‘paperclip’ icon.
The lsqcurvefit function is the correct choice for this problem.