Hi,
Suppose there is an observed matrix , how can I find a linear regression () via , where is a given matrix, and =ones(m,n)?
As I know, Matlab provides some solutions for the case of the obseved vector , such as regress, but not for the observed matrix.
Thanks!

1 件のコメント

ruizhi yang
ruizhi yang 2021 年 3 月 31 日
Your question is very clear. How did you solve this problem? can you share?thanks a lot

サインインしてコメントする。

 採用された回答

KSSV
KSSV 2020 年 5 月 26 日

0 投票

P = polyfit(X,Y,1)

2 件のコメント

KSSV
KSSV 2020 年 5 月 26 日
The polyfit gives you approximate, using the above is more apt.
Chenglong Li
Chenglong Li 2020 年 5 月 26 日
Thanks a lot! :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLinear and Nonlinear Regression についてさらに検索

質問済み:

2020 年 5 月 26 日

コメント済み:

2021 年 3 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by