Home > vbmeg > external > mne > mne_ex_data_sets.m

mne_ex_data_sets

PURPOSE ^

SYNOPSIS ^

function [res] = mne_ex_data_sets(fname)

DESCRIPTION ^

   
   Find all evoked response data from a given file

   [res] = mne_ex_data_sets(fname)

   fname   - Name of the file to look at
   res     - Structure containing the result

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [res] = mne_ex_data_sets(fname)
0002 %
0003 %   Find all evoked response data from a given file
0004 %
0005 %   [res] = mne_ex_data_sets(fname)
0006 %
0007 %   fname   - Name of the file to look at
0008 %   res     - Structure containing the result
0009 %
0010 
0011 %
0012 %   Author : Matti Hamalainen, MGH Martinos Center
0013 %   License : BSD 3-clause
0014 %
0015 %   Revision 1.2  2006/04/23 15:29:40  msh
0016 %   Added MGH to the copyright
0017 %
0018 %   Revision 1.1  2006/04/21 17:31:07  msh
0019 %   Added the examples.
0020 %   Modified the formatting of some informative output.
0021 %
0022 %
0023 me='MNE:mne_ex_data_sets';
0024 
0025 if nargin ~= 1
0026     error(me,'Wrong number of arguments');
0027 end
0028 
0029 try
0030     res = fiff_find_evoked(fname);
0031 catch
0032     error(me,'%s',mne_omit_first_line(lasterr));
0033 end
0034 
0035 if isempty(res)
0036     fprintf(1,'No evoked response data sets in %s\n',fname);
0037 else
0038     fprintf(1,'Found %d evoked response data sets in %s :\n',length(res),fname);
0039     for k = 1:length(res)
0040         fprintf(1,'\t%s (%s)\n',res(k).comment,res(k).aspect_name);
0041     end
0042 end
0043 
0044 
0045 return;
0046 
0047 end
0048

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005