function multiMatImporter
hFig = figure('Name','MAT-file Range Importer',...
'MenuBar','none','ToolBar','none',...
'NumberTitle','off','Resize','off',...
'Position',[100 100 420 320]);
[fn, pth] = uigetfile('*.mat',...
'Select one or more MAT-files','MultiSelect','on');
if isequal(fn,0), return, end
if ischar(fn), fn = {fn}; end
handles.fullpath = fullfile(pth,fn);
set(handles.listFiles,'String',fn,'Value',1);
rangeStr = arrayfun(@num2str,1:N,'UniformOutput',false);
set(handles.popupStart,'String',rangeStr,'Value',1,'Enable','on');
set(handles.popupEnd, 'String',rangeStr,'Value',N,'Enable','on');
set(handles.btnExtract,'Enable','on');
sIdx = handles.popupStart.Value;
eIdx = handles.popupEnd.Value;
errordlg('Start index must not exceed end index.','Range error');
chosen = handles.fullpath(sIdx:eIdx);
results = cell(size(chosen));
hWait = waitbar(0,'Processing files…');
waitbar(k/numel(chosen),hWait);
handles.results = results;
msgbox(sprintf('Done! Processed %d file(s).',numel(chosen)),...