how to find the horizontal Asymptotes of fitted curve equation for a data set

5 次查看(过去 30 天)
I have a data for (y,vor). I have used cftool to get fitted function for the input data. I want to know how to get the the horizontal asymptote of the fitted function as it approches zero (vor=0).
I have tried to use limit function but it does not work. I saved the fitted function as fittedmodel, then i used limit function to get teh asymtote
limit(fittedmodel,x,0)
Check for missing argument or incorrect argument data type in call to function 'limit'.

回答(1 个)

Soumya
Soumya 2025-6-11
Hi @zein,
The limit function in MATLAB which is a part of the Symbolic Math Toolbox, is designed to operate on symbolic variables and symbolic expressions. When the function ‘cftool’ from the Curve Fitting Toolbox creates a fitted model, it returns a cfit object. A cfit object is an object that encapsulates the fitted function, but it is not a symbolic expression, hence does not work with ‘cftool’ function.
To enable symbolic analysis, the object created by the cfit’ function must first be converted into a symbolic expression using the formula function:
fexpr = formula(fittedmodel);
Once in symbolic form, MATLAB’s Symbolic Math Toolbox can be used to compute the limit of the function as the independent variable approaches a specified value.
For detailed information on these functions, please refer to the following documentation:
I hope this helps!

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by