EEGLABによるEDFファイル読み込みの際のエラー対応について
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
EDFファイルとして保存してある脳波データの解析をEEGLABで行いたいと思っています。
そのためEEGLABから File→import data →using EEGLAB functions and plugins → FromEDF/EDF+/GDF files (BIOSIG toolbox) の順に進み、チャンネル数などを設定してOKで進んだ後に画像のような
「EEGLAB error in function pop. biosig at line 240:
左辺のサイズが1×147231で右辺のサイズが114x147231であるため、代入を実行できません。」
というエラーが出てしまいます。
対処法が分からないので、どなたか教えていただけないでしょうか。
よろしくお願い致します。

1 commentaire
Kojiro Saito
le 5 Juil 2023
サンプルファイルがあればもう少し詳細を見れるのですが、取り急ぎコードを見てみると、
edit pop_biosig
を実行してエラーが起きている240行目を見ると、
tmpfields = fieldnames(dat.EDFplus);
for ind = 1:length(tmpfields)
tmpdat = getfield(dat.EDFplus, tmpfields{ind});
if length(tmpdat) == EEG.pnts
EEG.data(end+1,:) = tmpdat; % 240行目
% 以下略
end
end
繰り返しで配列EEG.dataに読み取った値を格納するところになっています。
EDFのファイルがフィールドによってデータ長が違ったりしていませんか?
Réponses (0)
Voir également
Catégories
En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!