Clear Filters
Clear Filters

How can I solve this problem in the CSP feature extraction algorithm for EEG signal?

1 view (last 30 days)
Dataset description:
Code:
% Calculate the covariance matrices for each class
cov_matrices = cell(1, 2);
disp(unique(labels));
disp(size(epochs));
for i = 1:2
if any(labels == i)
class_epochs = epochs(:, :, labels == i);
cov_matrices{i} = cov(class_epochs');
else
disp(['No data for class ', num2str(i)]);
end
end
Error:

Answers (0)

Categories

Find more on EEG/MEG/ECoG in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!