Home > eeg > egis > meg_code > fix_trial_order.m

fix_trial_order

PURPOSE ^

SYNOPSIS ^

function ordered_trial = fix_trial_order(trialdata,meg_channels,meg_indices,eeg_channels,eeg_indices,analog_channels,analog_indices,reference_channels,reference_indices);

DESCRIPTION ^

reorders data into the correct order coming off MEG convert

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function ordered_trial = fix_trial_order(trialdata,meg_channels,meg_indices,eeg_channels,eeg_indices,analog_channels,analog_indices,reference_channels,reference_indices);
0002 %
0003 %reorders data into the correct order coming off MEG convert
0004 %
0005 %
0006 
0007 ordered_trial(:,meg_channels) = trialdata(:,meg_indices)*(10^12);
0008 ordered_trial(:,eeg_channels) = trialdata(:,eeg_indices)*100;
0009 ordered_trial(:,analog_channels) = trialdata(:,analog_indices)*100;
0010 ordered_trial(:,reference_channels) = trialdata(:,reference_indices)*(10^12);
0011

Generated on Wed 20-Mar-2019 04:00:51 by m2html © 2003