Fit a linear model and get its R^2 if I want the model to have a specific form and slope

1 回表示 (過去 30 日間)
Brando Miranda
Brando Miranda 2018 年 8 月 16 日
コメント済み: KSSV 2018 年 8 月 16 日
I want to see fit a model y=mx+c when m=1 to some data, so I only want to learn the offset.
I know the expressions are relatively easy to get by hand but I was curious if some software in matlab already did this, especially if it computed other stuff for me like R^2 values etc.
Does this exist?
I have two vectors X,y and want to get y=x+c but only fit c.

回答 (0 件)

カテゴリ

Help Center および File ExchangeGaussian Process Regression についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by