20 lines
332 B
Mathematica
20 lines
332 B
Mathematica
|
function[] = importData(varargin)
|
||
|
if (nargin == 0)
|
||
|
if (isempty(obj.filename))
|
||
|
error('Filename has not been set')
|
||
|
end
|
||
|
else
|
||
|
obj.filename = varargin{1};
|
||
|
end
|
||
|
|
||
|
[base filename ext] = fileparts(obj.filename);
|
||
|
|
||
|
if strcmp(lower(ext), '.edf');
|
||
|
obj.readEDF;
|
||
|
end
|
||
|
|
||
|
if strcmp(lower(ext), '.asc');
|
||
|
obj.readASC;
|
||
|
end
|
||
|
end
|