Non-linear regression, force the curve to go through a starting point

51 Views Asked by At

I have two sets of points:

x=[300  292 310 330]
y=[0.01 60  120 160]

enter image description here

I need to find curve of best fit through those points. I know it has a form: $$x=C_1+C_2\text{log}(y)+C_3y$$

Using nlinfit in Matlab does the job as shown:enter image description here

But the problem I have is that the curve does not start at the initial point (0.01, 300) and I need it to start at this exact point. How to achieve this?