function genFullRecNoWaveformNoClean(fid_prefix)

fpath = ['C:\Users\USER\Documents\mingfaifong\' fid_prefix '\matfiles\'];
spath = ['C:\Users\USER\Documents\mingfaifong\' fid_prefix '\'];

fpath_info = dir(fpath);      %get info about contents of directory
isfile = ~[fpath_info.isdir]; %get index for files only
fidlist = {fpath_info(isfile).name}; %create list of files

time = [];
channel = [];
unit = [];

for i = 1:length(fidlist)

    fid = fidlist{i};
    x = load([fpath fid],'-mat');
    
    time = [time; x.time];
    channel = [channel; x.channel];
    unit = [unit; x.unit];

    
    
%     if i==93
%     elseif i==93*2
%         save([spath fid_prefix '_wB_FullRecNoWaveformNoClean'],'time','channel');
%         time = []; channel = [];
%     elseif i==93*3
%         save([spath fid_prefix '_wC_FullRecNoWaveformNoClean'],'time','channel');
%         time = []; channel = [];
%     elseif i==93*4
%         save([spath fid_prefix '_wD_FullRecNoWaveformNoClean'],'time','channel');
%         time = []; channel = [];
%     elseif i==93*5
%         save([spath fid_prefix '_wE_FullRecNoWaveformNoClean'],'time','channel');
%         time = []; channel = [];
%     elseif i==93*6
%         save([spath fid_prefix '_wF_FullRecNoWaveformNoClean'],'time','channel');
%         time = []; channel = [];
%     end
end

save([spath fid_prefix '_FullRecNoWaveformNoClean'],'time','channel','unit');