How can I solve this problem in the CSP feature extraction algorithm for EEG signal?
조회 수: 2 (최근 30일)
이전 댓글 표시
Dataset description:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1554587/image.png)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1554582/image.png)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!