Linear Regression, line of best fit

335 ビュー (過去 30 日間)
YM
YM 2019 年 5 月 17 日
回答済み: KSSV 2019 年 5 月 17 日
If I have data for vectors x = [ ] and y= [ ], how do I find and plot the linear regression/line of best fit? Once I have plotted the line of best fit, how do I record the slope of that line of best fit to some variable "a"?

回答 (1 件)

KSSV
KSSV 2019 年 5 月 17 日
To fit a line use n=1.

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by