I have to do fitting of some experimental data that in the end should be represented like this: enter image description here

For the left part of graph from $(\pi,0)$ to $(0,0)$ experimental data is given as:


and the data for the remaining part of plot is:


I would like to find graph which is represented with black line as a result of a fitting with model:


and to find parameters $a$ and $b$ that fit data on both parts. Is there some way in which I can do this in Mathematica?

  • $\begingroup$ Your data is 2D but your model is 3D? $\endgroup$ – Okkes Dulgerci Feb 7 at 16:19
  • $\begingroup$ Model function would take values for (x,y) in two parts: from (\pi,0) to (0,0) and from (0,0) to (0,2\pi) and give some value so it can be in general plotted in such a way, because one variable is 0 when other is changed. $\endgroup$ – Theorist Feb 7 at 16:27
  • $\begingroup$ So does x go from Pi to 0 with y = 0 and y go from 0 to 2 Pi with x = 0? Really not very clear. If we change the sign of the x values for the data_left are we getting your plot on a continuous axis going from -Pi to 2 Pi? $\endgroup$ – Hugh Feb 7 at 16:49
  • $\begingroup$ For data_left I have y=0, and x is varied from 0 to Pi, and for data_right, x is 0 and the y values are in interval from 0 to 2*Pi. $\endgroup$ – Theorist Feb 7 at 16:53
  • $\begingroup$ I have previously asked question about these plots. See post mathematica.stackexchange.com/questions/182723/…. Now I am interested is there a way of performing fit with some data with model given. $\endgroup$ – Theorist Feb 7 at 16:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.