Discrim function for Linear discriminant analysis problem
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!