EEGLABによるEDFファイル読み込みの際のエラー対応について
8 views (last 30 days)
Show older comments
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 Comment
Kojiro Saito
on 5 Jul 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のファイルがフィールドによってデータ長が違ったりしていませんか?
Answers (0)
See Also
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!