Home > eeg > egis > egis_file_utils > get_ses_chdr.m

get_ses_chdr

PURPOSE ^

ses_chdr = get_ses_chdr(fname);

SYNOPSIS ^

function chdr = get_ses_chdr(fname)

DESCRIPTION ^

 ses_chdr = get_ses_chdr(fname);

 Returns session cell headers from EGIS file specified in fname

 This function provides a wrapper around the file I/O that necessarily
 accompanies lower-level routines such as rd_egis_hdr_v.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function chdr = get_ses_chdr(fname)
0002 % ses_chdr = get_ses_chdr(fname);
0003 %
0004 % Returns session cell headers from EGIS file specified in fname
0005 %
0006 % This function provides a wrapper around the file I/O that necessarily
0007 % accompanies lower-level routines such as rd_egis_hdr_v.
0008 %
0009 
0010 % 10/22/01 PJ
0011 
0012 byte_sex = 'ieee-be';
0013 
0014 fid = fopen(fname, 'rb', byte_sex);
0015 
0016 if fid == -1, error(sprintf('Error opening file %s', fname)), end
0017 
0018 [fhdr,chdr,ename,czeros,cgains,cnames,fcom,ftext, coff]=rd_egis_hdr_v(fid);
0019 
0020 fclose(fid);
0021 
0022 return

Generated on Sun 24-Mar-2019 04:00:51 by m2html © 2003