123456789101112131415161718192021222324252627282930313233343536373839 |
- function [alt_y, SR, MetaData] = GB_gtec_files_concatenation(file_tbc)
- % get the last session (final number +1)
- last_section = size(file_tbc,1);
-
- %
- alt_y = [];
-
- % for each chunk
- for k = 1:last_section
- % load the file
- sect{k} = load(file_tbc(k).name);
-
- alt_y = horzcat(alt_y, sect{k}.y);
-
- end
-
-
- % time channel is long as the sum of the timings
- alt_y(1,:) = [1:size(alt_y,2)];
-
- % new_file = struct;
- % new_file.y = alt_y;
- % new_file.SR = SR;
- %
- % if isfield(sect{end}, 'MetaData')
- % new_file.MetaData = sect{end}.MetaData;
- % end
- SR = sect{last_section}.SR;
- if isfield(sect{last_section}, 'MetaData')
- MetaData = sect{last_section}.MetaData;
- else
- MetaData = '';
- end
- end
|