linfit(x,y)

Compute linear fit between vectors 'x' and 'y'
ダウンロード: 236
更新 2017/5/16

ライセンスの表示

call:

[Coeffs, Rho, R2, Residuals] = linfit(x,y)

Compute linear fit between vectors 'x' and 'y', and return the coefficients of the regression
line, the correlation between 'x' and 'y', the coefficient of determination ("how much knowing x it
is possible to determine y"), and the residuals. If the residuals exhibit "non-random" patterns, it
is an indication that a linear fit is not so good. To check them: bar(x,Residuals), xlabel('x'), ylabel('ŷ - y')
Note: the function ignores non-finite values(-Inf,Inf,NaN).

引用

Ruggero G. Bettinardi (2024). linfit(x,y) (https://www.mathworks.com/matlabcentral/fileexchange/62983-linfit-x-y), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2009a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersModel Building and Assessment についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0