Home > vbmeg > functions > device > eeg > vb_eeginfo_get_header.m

vb_eeginfo_get_header

PURPOSE ^

return header data of Biosemi from EEGinfo

SYNOPSIS ^

function [header] = vb_eeginfo_get_header(eeginfo)

DESCRIPTION ^

 return header data of Biosemi from EEGinfo

 [usage]
   [header] = vb_eeginfo_get_header(eeginfo)

 [input]
    eeginfo : <required> <<struct>> EEGinfo

 [output]
     header : <<struct>> header information of Biosemi

 [note]
   device dependent data

   Fields are as follows:
   ========= EEGinfo.Header ==========
            FILE:
        FileName: 
         VERSION: 
             PID: 
             RID: 
              T0: 
         HeadLen: 
            NRec: 
             Dur: 
              NS: 
           Label: 
      Transducer: 
         PhysDim: 
         PhysMin: 
         PhysMax: 
          DigMin: 
          DigMax: 
         PreFilt: 
             SPR: 
             Cal: 
             Off: 
           Calib: 
      SampleRate: 
     Chan_Select: 
         ChanTyp: 
              AS: 
 
 [history]
   2008-02-27 (Sako) initial version
   2011-05-27 (Sako) modified according to the new data format

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function [header] = vb_eeginfo_get_header(eeginfo)
0002 % return header data of Biosemi from EEGinfo
0003 %
0004 % [usage]
0005 %   [header] = vb_eeginfo_get_header(eeginfo)
0006 %
0007 % [input]
0008 %    eeginfo : <required> <<struct>> EEGinfo
0009 %
0010 % [output]
0011 %     header : <<struct>> header information of Biosemi
0012 %
0013 % [note]
0014 %   device dependent data
0015 %
0016 %   Fields are as follows:
0017 %   ========= EEGinfo.Header ==========
0018 %            FILE:
0019 %        FileName:
0020 %         VERSION:
0021 %             PID:
0022 %             RID:
0023 %              T0:
0024 %         HeadLen:
0025 %            NRec:
0026 %             Dur:
0027 %              NS:
0028 %           Label:
0029 %      Transducer:
0030 %         PhysDim:
0031 %         PhysMin:
0032 %         PhysMax:
0033 %          DigMin:
0034 %          DigMax:
0035 %         PreFilt:
0036 %             SPR:
0037 %             Cal:
0038 %             Off:
0039 %           Calib:
0040 %      SampleRate:
0041 %     Chan_Select:
0042 %         ChanTyp:
0043 %              AS:
0044 %
0045 % [history]
0046 %   2008-02-27 (Sako) initial version
0047 %   2011-05-27 (Sako) modified according to the new data format
0048 %
0049 % Copyright (C) 2011, ATR All Rights Reserved.
0050 % License : New BSD License(see VBMEG_LICENSE.txt)
0051 
0052 % --- CHECK ARGUMENTS --- %
0053 if ~exist('eeginfo', 'var'), eeginfo = []; end
0054 [eeginfo] = inner_check_arguments(eeginfo);
0055 
0056 % --- MAIN PROCEDURE --------------------------------------------------------- %
0057 %
0058 header = [];
0059 
0060 if isfield(eeginfo, 'device_info')
0061   if isfield(eeginfo.device_info, 'Header')
0062     header = eeginfo.device_info.Header;
0063   else
0064 %     warning('device_info does not have ''Header'' field\n');
0065   end
0066 else
0067   if isfield(eeginfo, 'Header')
0068     header = eeginfo.Header;
0069   else
0070 %     warning('eeginfo does not have ''Header'' field\n');
0071   end
0072 end
0073 return;
0074 %
0075 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0076 
0077 % --- INNER FUNCTIONS -------------------------------------------------------- %
0078 %
0079 % --- inner_check_arguments()
0080 %
0081 function [eeginfo] = inner_check_arguments(eeginfo)
0082 func_ = mfilename;
0083 if isempty(eeginfo)
0084   error('(%s)eeginfo is a required parameter', func_);
0085 end
0086 return;
0087 %
0088 % --- end of inner_check_arguments()
0089 %
0090 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0091 
0092 %--- END OF FILE ---%

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