How to open multiple files within a GUI
Show older comments
Hey,
I'm trying to work on a script that involves a GUI for grabbing different datasets, however matlab treats each dataset as an individual directory that has to be opened one at a time, is there anyway to get it to grab all datasets in a folder at once without having to do each at a time. I'm using the uigetdir command...Here is a part of my script, any suggestions?
%*******************************************************************************
% INPUTS
datapath='/home/meguser/Documents/Projects/Datasets/MEG75/subject_2/'; % path to data sets
savepath='/home/meguser/Documents/Projects/Datasets/MEG75/subject_2/processed_60Hz/'; % path to data sets
% datapath=[pwd, filesep, 'sampleData', filesep]; % path to data sets
% savepath=[pwd, filesep, 'sampleData', filesep];
% % % path = uigetdir(pwd,'Select folder that CONTAINS CTF dataset (.ds)...');
% % % datapath = [fullfile(path), filesep];
% % % savepath = [fullfile(path), filesep];
% runname_list=ls(fullfile(datapath, '*.ds'));
runname_list=strvcat('2_MEG075_20130606_GFapi.ds',...
'2_MEG075_20130606_GFipa.ds',...
'2_MEG075_20130606_GFpa.ds',...
'2_MEG075_20130606_GNapi.ds',...
'2_MEG075_20130606_GNipa.ds',...
'2_MEG075_20130606_GNpa.ds',...
'2_MEG075_20130606_MFapi.ds',...
'2_MEG075_20130606_MFipa.ds',...
'2_MEG075_20130606_MNapi.ds',...
'2_MEG075_20130606_MNipa.ds',...
'2_MEG075_20130606_NSjaw.ds',...
'2_MEG075_20130606_NSswallow.ds',...
'2_MEG075_20130606_NStongue.ds',...
'2_MEG075_20130606_SFpataka.ds',...
'2_MEG075_20130606_SNpataka.ds'); %list of files to process
Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!