if i have a bunch of random numbers how do i create a best fit line for my data

답변 (2개)

Win co
Win co 2012년 5월 11일

0 개 추천

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, ...
Daniel Shub
Daniel Shub 2012년 5월 12일

0 개 추천

If you just want to plot the data and line
doc lsline
If you want the equation for the the line
doc polyfit

카테고리

도움말 센터 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

태그

질문:

2012년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by