Trying to find a horizontal asymptote of an exponential decay

6 次查看(过去 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

回答(1 个)

Matt J
Matt J 2013-1-29
Average over samples at large x?

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by