MATLAB: Simultaneous fitting of two plots with two functions

curve fittingMATLAB

I have two sets of dependent variable column vectors (y1, y2) for a set of independent variable column vectors (x). I want to fit the (x, y1) plot with the function f1(ca. f1 = (a + (b-a)*(1 + c*x^d))) and the (x, y2) plot with the function f2(ca. f2 = (b-a)*c*x^d)) simultaneously. Could anyone please help?
Many thanks, in advance! Arun

Best Answer

Use "lsqcurvefit" with the data set xdata = (x,x),ydata = (y1,y2).
Best wishes
Torsten.