2010-03-29 20:12:01 +00:00
|
|
|
function UI = ReadUI(files, path)
|
|
|
|
|
|
|
|
if (nargin<2)
|
|
|
|
path ='';
|
|
|
|
end
|
|
|
|
|
|
|
|
if (ischar(files))
|
|
|
|
filenames{1}=files;
|
|
|
|
else
|
|
|
|
filenames=files;
|
|
|
|
end
|
|
|
|
|
2010-04-17 19:56:16 +00:00
|
|
|
UI.TD = {};
|
|
|
|
UI.FD = {};
|
2010-03-29 20:12:01 +00:00
|
|
|
for n=1:numel(filenames)
|
|
|
|
tmp = load([path filenames{n}]);
|
|
|
|
t = tmp(:,1)';
|
|
|
|
val = tmp(:,2)';
|
|
|
|
|
|
|
|
UI.TD{n}.t = t;
|
|
|
|
UI.TD{n}.val = val;
|
|
|
|
|
2010-03-31 13:38:37 +00:00
|
|
|
[UI.FD{n}.f,UI.FD{n}.val] = FFT_time2freq( t,val );
|
2010-03-30 11:13:27 +00:00
|
|
|
end
|