05-17-2018 09:54 AM
Hi,
I am trying curve Fitting in Labview. The equation which I am using is y=a*exp(b^x).
I have only two co-ordinates and while using exponential fit.vi it fits d curve same as a linear fit.
Any help would be greatly appreciated.
Please find the attached vi and expected graph below
Thanks in advance
Solved! Go to Solution.
05-17-2018 10:02 AM
You only plot two points. To generate more points, generate a x-ramp with reasonable range and resolution and generate y data based on the best fit parameters.
05-17-2018 10:13 AM
05-18-2018 06:40 AM
Thanks a lot for the solution 🙂
05-18-2018 08:17 AM - edited 05-18-2018 08:20 AM
Since you did not fit for the offset, I left it out for simplicity. For a more universal solution you might want to also add the offset when generating the simulated data, even though it is zero in this case. (Fewer changes needed if you ever need to include an offset in the future).
Also note that you can easily make the range for the simulation wider (e.g. 190...260) for a less cramped look.
05-23-2018 10:09 AM
Thanks a lot for the Suggestion. Will take care of Offset.