Different results for same equation in curve fitting

2 views (last 30 days)
Why is custom fitting not the same as the exponential default one as shown in the picture? The data fits nicely when I use the 'exp2' instead.
I'm relatively new to MATLAB and this is quite baffling to me as i am unable to use a custom equation as it simply does not fit.
  4 Comments
Ayushi Sharma
Ayushi Sharma on 15 Jul 2021
I already have a custom equation:
a*exp(-x/T) +c*(T*(exp(-x/T)-1)+x)
I need to find the value of constant 'c'
In the csv attached:
y = dv
and x= t
Tzu-Yi Chang
Tzu-Yi Chang on 7 Feb 2024
Hi,
Although this conversation was years ago, but I'd like to ask the same question again.
I have the same issue, and even I maunally select the same start point in my customize equation, the results still different between prepackaged 2nd exponential and customize 2nd exponential. Is there any other trick?
Thanks!

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!