create best fit line
6 次查看(过去 30 天)
显示 更早的评论
if i have a bunch of random numbers how do i create a best fit line for my data
0 个评论
回答(2 个)
Win co
2012-5-11
I suggest you to use "cftool". You have to possess an input and an output vector. The tool has a lot of fit function : gaussian, weibul, sum of sin, fourier, poly, exp, ...
0 个评论
Daniel Shub
2012-5-12
If you just want to plot the data and line
doc lsline
If you want the equation for the the line
doc polyfit
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!