Discrim function for Linear discriminant analysis problem
2 次查看(过去 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!