📄 eeg_load_ascii.m
字号:
function [volt] = eeg_load_ascii(filename)
% EEG_LOAD_ASCII - Load ascii EEG data matrix
%
% Assumes a simple matrix format of data, compatible with matlab
% 'load' command, with no strings (eg, labels) in the data file
%
% Useage: [volt] = eeg_load_ascii(filename)
%
% where: filename is the full path + fileprefix + filextension
%
% comment: A very simple function, useful in other scripts.
% Could be developed further to include matrix orientation
% checks and/or reorientation options. Currently a simple
% wrapper for the 'load' matlab function.
%
% $Revision: 1.3 $ $Date: 2003/03/27 23:21:16 $
% Licence: GNU GPL, no implied or express warranties
% History: 07/2000, Darren.Weber@flinders.edu.au
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fprintf('\nEEG_LOAD_ASCII\n');
file = char(filename);
[path,name,ext] = fileparts(filename);
file = fullfile(path,[name ext]);
if ~isequal(exist(file),2),
lookfile = which(file);
if isempty(lookfile),
msg = sprintf('...cannot locate %s\n', filename);
error(msg);
else
file = lookfile;
end
end
fprintf('...reading %s : ', [name ext]);
volt = load(file);
s = size(volt);
fprintf('%d rows, %d cols\n', s(1), s(2));
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -