EEGLABによるE​DFファイル読み込み​の際のエラー対応につ​いて

8 visualizaciones (últimos 30 días)
悠真 上田
悠真 上田 el 3 de Jul. de 2023
Comentada: Kojiro Saito el 5 de Jul. de 2023
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 comentario
Kojiro Saito
Kojiro Saito el 5 de Jul. de 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のファイルがフィールドによってデータ長が違ったりしていませんか?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!