[stc] = mne_read_stc_file1(filename) Reads an stc file. The returned structure has the following fields tmin The first time point of the data in seconds tstep Time between frames in seconds vertices vertex indices (1 based) data The data matrix (nvert * ntime)
0001 function [stc] = mne_read_stc_file1(filename) 0002 % 0003 % [stc] = mne_read_stc_file1(filename) 0004 % 0005 % Reads an stc file. The returned structure has the following fields 0006 % 0007 % tmin The first time point of the data in seconds 0008 % tstep Time between frames in seconds 0009 % vertices vertex indices (1 based) 0010 % data The data matrix (nvert * ntime) 0011 % 0012 % 0013 0014 % 0015 % 0016 % Author : Matti Hamalainen, MGH Martinos Center 0017 % License : BSD 3-clause 0018 % 0019 me='MNE:mne_read_stc_file1'; 0020 if(nargin ~= 1) 0021 error(me,'usage: [stc] = mne_read_stc_file1(filename)'); 0022 end 0023 0024 try 0025 stc = mne_read_stc_file(filename); 0026 stc.vertices = stc.vertices + 1; 0027 catch 0028 error(me,'%s',mne_omit_first_line(lasterr)); 0029 end 0030 0031 return; 0032 0033