user defined equation fit to a dat a set
1 次查看(过去 30 天)
显示 更早的评论
I have x axis values=x
y axis values=y
and equation of line to be fit on the plot of data is suppose
d=a*exp(x^b - 2^b)
where a and b i have to find...
so please help me out with this problem
0 个评论
采纳的回答
AJ von Alt
2014-1-22
The fit function can use custom non-linear models. The custom nonlinear models article gives an example of how to do this from the command line.
For your model it would be:
f = fit( x , y ,'a*exp(x^b-2^b)')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Least Squares 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!