mvregress fails to solve same problem as regress?

10 visualizaciones (últimos 30 días)
Matthew
Matthew el 22 de Sept. de 2014
Comentada: Matthew el 22 de Sept. de 2014
X = 1:10; X=X';
Y = X;
% i.e. just the line y=x
regress(Y,X); % returns "1", as expected
mvregress(X,Y); % returns the following error:
% Error using mvregress (line 452)
% Covariance is not positive-definite.
Am I missing something here?
My definitions of X and Y for mvregress seem to correspond with the documentation...
  2 comentarios
Roger Wohlwend
Roger Wohlwend el 22 de Sept. de 2014
My Matlab does not throw an error. Which release are you using?
Matthew
Matthew el 22 de Sept. de 2014
2014

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by