필터 지우기
필터 지우기

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 CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by