rd_meg_allch
PURPOSE
trialdata = rd_meg_allch(fid,header_length,NChan,numsamp,start_samp);
SYNOPSIS
function trialdata = rd_meg_allch(fid,header_length,NChan,numsamp,start_samp);
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
This function is called by:
- plot_meg_data plot_meg_data(samples, chans, freqs,Lo_Pass,Hi_Pass,
- rd_meg_onechan [analog_power,NSamp,Samp_Rate] = power_fft_analog(analog_chans,megfilename);
- run_meg_csdm status = run_meg_csdm(skip_samples,Epoch,MEG_max,EEG_max,EEG_reference,
- run_riv1_csdm status = run_meg_csdm(skip_samples,Epoch,MEG_max,EEG_max,EEG_reference,
- run_riv_csdm status = run_meg_csdm(skip_samples,Epoch,MEG_max,EEG_max,EEG_reference,
SOURCE CODE
0001 function trialdata = rd_meg_allch(fid,header_length,NChan,numsamp,start_samp);
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 if ~(nargin == 4|nargin == 5);
0016 error('improper number of input arguments')
0017 end;
0018
0019
0020 if nargin == 5
0021 frewind(fid);
0022 fseek(fid,header_length,'bof');
0023 skip_bytes = NChan*(start_samp-1)*4;
0024 fseek(fid,skip_bytes,'cof');
0025 end;
0026 trialdata = fread(fid,[NChan,numsamp],'real*4');
0027 trialdata = trialdata';
0028
0029
0030
0031
0032
Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003