The pooled covariance matrix of TRAINING must be positive definite
问题 I know this question has already been asked a couple of times, but I couldn't find a solution to my problem. I don't have more variables than observations and I don't have NAN values in my matrix. Here's my function: function [ind, idx_ran] = fselect(features_f, class_f, dir) idx = linspace(1,size(features_f, 2), size(features_f, 2)); idx_ran = idx(:,randperm(size(features_f, 2))); features_t_ran = features_f(:,idx_ran); % randomize colums len = length(class_f); r = randi(len, [1, round(len*0