1. textscan
dialogtitle= 'Select file(s)';
filtspec = {‘*.txt;*.* '};
[files
folder] = uigetfile(filtspec,dialogtitle,'multiselect','on');
time=[];cur=[];
for i=1:length(files)
disp([num2str(i)'/' num2str(length(files))]);
filename=fullfile(folder,files(i));
fid=fopen(char(filename),'r');
A=textscan(fid,'%s %f %f');
fclose(fid);
time1=linspace(datenum(A{1,1}(1)), datenum(A{1,1}(end)),length(A{1,1}));
cur1=A{1,2};
time=[time,time1];
cur=[cur;cur1];
end