Discrim function for Linear discriminant analysis problem

조회 수: 1 (최근 30일)
Collet Bastien
Collet Bastien 2013년 3월 28일
Hello, I am using the function "lda" from the discrim toolbox in matlab. However, I'm having the following error :
> In lda.lda at 191 In testLDA at 10 ??? Error using ==> inv Matrix must be square.
Error in ==> lda.lda at 196 S = S*inv(triu(qr(s*v')));
Error in ==> testLDA at 10 F = LDA(X, Y)
My matrix X : p x n where p is the number of nodes and n the number of features. My matrix Y : p x 1 (contains values between 1 and 6 because I have 6 classes).
Does anyone know how to fix this problem ?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by