Ben, Matt and Steve
Thank you very much for your help. It helped me compile the code by the deadline. This is the code I wrote. I'm just putting it out there so that others may use it.
Partial Code:
case 'Folder'
% User prompt to choose directory
directory= uigetdir('R:\WheelchairMonitoring',...
'Select the folder with the Gulf Coast Acclerometer data');
% get the right path for finding files
% with filename DATA and .csv extension
sdir=strcat(directory,'\*DATA*.CSV');
% get the files with DATA as filename & .csv as extension
% in the choosen folder
files=dir(sdir);
% Check for sequence in filename
for i=1:length(files)
if( str2double(files(i,1).name(6:8))==i)
% Gather filenames that are sequential
filename=fullfile(directory,files(i).name);
% Gather data from each file
dataFolder(i,1)=parseGCDCdata(filename);
else
disp('The files are not sequentially recorded check the folder');
end
end
% Now we have a bunch of structures that have
% each accelerometer data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Once again thank you for your support
Nagmesh
"Steven_Lord" <
sl...@mathworks.com> wrote in message <jtpb28$fq$
1...@newscl01ah.mathworks.com>...