I have implemented the LDA algorithm. However when I had to get the inverse of a matrix Matlab threw an error and I had to use pinv (pseudo inverse) instead of inverse. Did I do something wrong or is it usual sometimes to have to use pinv instead of inv?
PS: My matrix is a square matrix as usual.