フィルターのクリア

How to load multiple file type XDF ?

4 ビュー (過去 30 日間)
Erwan Tri Efendi
Erwan Tri Efendi 2022 年 11 月 3 日
コメント済み: Erwan Tri Efendi 2023 年 3 月 23 日
Hello, I have problem load multiple .xdf ? I use code data = pop_loadxdf () but just one file. Please help me, Can I use pop_loadxdf() with multiple file ?
Thanks very much
  2 件のコメント
Stephen23
Stephen23 2022 年 11 月 3 日
Erwan Tri Efendi
Erwan Tri Efendi 2022 年 11 月 4 日
Thanks about replay, I use it method but for xdf file can't open fill in data. xdf is file type array with type struct

サインインしてコメントする。

採用された回答

Erwan Tri Efendi
Erwan Tri Efendi 2022 年 12 月 1 日
cd ('E:\UNDIP MAGISTER ELEKTRO\Thesis UNDIP\Program Thesis');
currentFolder = pwd;
EEG = dir('*.xdf');
N = length(EEG) ;
for i= 1:N
x= EEG(i).name;
fullFileName = fullfile(cd, x);
raw(i) = load_xdf(fullFileName);
end
  2 件のコメント
Stephen23
Stephen23 2022 年 12 月 1 日
編集済み: Stephen23 2022 年 12 月 1 日
Do not change directory just to read a data file. Instead use an absolute/relative filename:
P = 'E:\UNDIP MAGISTER ELEKTRO\Thesis UNDIP\Program Thesis';
S = dir(fullfile(P,'*.xdf'));
for k = 1:numel(S)
F = fullfile(P,S(k).name);
S(k).data = load_xdf(F);
end
Erwan Tri Efendi
Erwan Tri Efendi 2023 年 3 月 23 日
thanks very much...your sugest's ok,,

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by