


downloadFiles Downloads the entire dataset of interest and saves the files the current working directory. Saves the records in a format very similar to the native APEX format to enable compatibility with normal pipeline.


0001 %downloadFiles Downloads the entire dataset of interest and saves the files 0002 % the current working directory. 0003 % Saves the records in a format very similar to the native APEX format 0004 % to enable compatibility with normal pipeline. 0005 0006 clear(); 0007 i = 9; 0008 record = strcat('picsdb/infant', int2str(i), '_ecg'); 0009 0010 % Load the data 0011 [signal,Fs,tm]=rdsamp(record); 0012 [ann]=rdann(record,'qrsc'); 0013 0014 result = {}; 0015 result.channels = {"ECG"}; 0016 result.Fs = Fs; 0017 result.data = signal; 0018 result.R_locs = ann; 0019 0020 % Save file in variable with same name: 0021 filename = char(strcat("infant",int2str(i),"_ecg")); 0022 eval([ filename '=result']); 0023 save(filename, filename); 0024 0025 for i = 2:3 0026 0027 end 0028