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 个)

类别

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