Need help with mvregress

1 回表示 (過去 30 日間)
Swetha Kalla
Swetha Kalla 2020 年 4 月 7 日
回答済み: Nikhil Sonavane 2020 年 4 月 13 日
Hello all,
I am new to matlab. I am trying to estimate the coefficients of my linear regression:
Ypca = A + B ∙ X + Epca
I have the table Ypca which is 15*3884 table and table X which is 7769*2 table.
I used the following code:
[beta,Sigma] = mvregress(X,Y,'algorithm','cwls');
My goal is to find out A, B and Epca.
But the error that I am getting is as follows:
Can someone please tell me how to proceed with this error? Thank you.
  1 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 4 月 8 日
As the error message indicates, the number of rows of observation X should be the same as the number of rows in response Y. The current dimensions of your matrix X and Y do not make much sense.

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

回答 (1 件)

Nikhil Sonavane
Nikhil Sonavane 2020 年 4 月 13 日
There is a mismatch in the dimensions of your input matrices and hence you are getting an error. I would suggest you to check dimensions of all your matrices once before you proceed with the code.

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by