Linear regression to a matrix

1 次查看(过去 30 天)
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
P = polyfit(X,Y,1)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by