Trying to find a horizontal asymptote of an exponential decay
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!