20 lines
332 B
Matlab
20 lines
332 B
Matlab
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
|