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 comentario

ruizhi yang
ruizhi yang el 31 de Mzo. de 2021
Your question is very clear. How did you solve this problem? can you share?thanks a lot

Iniciar sesión para comentar.

 Respuesta aceptada

KSSV
KSSV el 26 de Mayo de 2020

0 votos

P = polyfit(X,Y,1)

2 comentarios

KSSV
KSSV el 26 de Mayo de 2020
The polyfit gives you approximate, using the above is more apt.
Chenglong Li
Chenglong Li el 26 de Mayo de 2020
Thanks a lot! :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 26 de Mayo de 2020

Comentada:

el 31 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by