Trying to find a horizontal asymptote of an exponential decay
1 view (last 30 days)
Show older comments
I have a set of data that I need to estimate the horizontal asymptote of. I have a code that sort of does this, but I do not think it is what I want. I have a set of equations already that assumes the asymptote at zero. so for example, y=1.24e^-0.005+0.
Any ideas on ow I code use the below code to estimate x at infinity?
Here is the code and thanks for any help anyone has to offer.
syms x
nominator=1.364.*exp(-x); % please change the value of nominator denominator=1; % please change the value of denomiantor in this %case it is 1
f=nominator./denominator;
hold on ezplot(f) % displays the plot of the function xlabel('Time Across Night') ylabel('SWA') vertical_aymtote=limit(f,inf) % horizontal asymptose is there where %vertical function becomes parallel to x axis ie x approaches to %+infinity or x approaches to - infinity
0 Comments
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!