Home > eeg > egis > net_utils > rd_anal_hdr.m

rd_anal_hdr

PURPOSE ^

SYNOPSIS ^

function [nfiles,obs_labels,Epoch,Window_Length,NEpoch,Nbad_chan,bad_chan,ref_flag,reference,NChan,Nfreq] = rd_anal_hdr(fid);

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [nfiles,obs_labels,Epoch,Window_Length,NEpoch,Nbad_chan,bad_chan,ref_flag,reference,NChan,Nfreq] = rd_anal_hdr(fid);
0002 
0003 nfiles = fread(fid,1,'int16');
0004 length_obs = fread(fid,1,'int16');
0005 for i = 1:nfiles
0006     obs_labels(i,:) = fread(fid,[1,length_obs],'char');
0007 end;
0008 Epoch = fread(fid,[1,nfiles],'int16');
0009 Window_Length = fread(fid,[1,nfiles],'int16');
0010 NEpoch = fread(fid,[1,nfiles],'int16');
0011 Nbad_chan = fread(fid,[1,nfiles],'int16');
0012 bad_chan = fread(fid,[nfiles,129],'int16');
0013 ref_flag = fread(fid,[1,nfiles],'int16');
0014 reference = fread(fid,[nfiles,129],'char');
0015 NChan = fread(fid,[1,nfiles],'int16');
0016 Nfreq = fread(fid,[1,nfiles],'int16');
0017

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003