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 Exchange에서 Linear 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