Hi. I have two set of data points (with common xdata set e.g. (x,y1,y2)). That means two yexp are there for each (x1,x2,x3..). Now for lsqcurvefit, I have designed my set of two functions (which are partially different but use same set of parameters) and the output for two functions are collected in a Y(calc) vector. e.g
Y(calc)= [(y1calc(x1),y1calc(x2),y1calc(x3)….y2calc(x1),y2calc(x2)y2calc(x3)…], where y1calc's are calculated values from model1 and y2calc's are from model2. Also the Ydata (exp) that I am giving is in same order so that lsqcurvefit can work correctly. Xdata for which Y's are calculated at each points are repeated according to Y(calc) e.g. Xdata=(x1,x2,x3….x1,x2,x3) Is this the right approach to the situation? I hope I was able to explain it correctly. Thanks
Best Answer