Home > vbmeg > functions > device > eeg > BVA > vb_trans_channnel_name.m

vb_trans_channnel_name

PURPOSE ^

vb_trans_channnel_name() - transform EEG_channel_names

SYNOPSIS ^

function [ch_name] = vb_trans_channnel_name(ch_name)

DESCRIPTION ^

vb_trans_channnel_name() - transform EEG_channel_names

 ch_name :digitizer channel_name
 ch_name2:EEG channel_name

written by Hiroe 2005.11.1

 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:

SOURCE CODE ^

0001 %vb_trans_channnel_name() - transform EEG_channel_names
0002 %
0003 % ch_name :digitizer channel_name
0004 % ch_name2:EEG channel_name
0005 %
0006 %written by Hiroe 2005.11.1
0007 %
0008 % Copyright (C) 2011, ATR All Rights Reserved.
0009 % License : New BSD License(see VBMEG_LICENSE.txt)
0010 
0011 function [ch_name] = vb_trans_channnel_name(ch_name)
0012 
0013 if size(ch_name,1) > 64
0014    DD=load('128MR_table.mat','-mat');
0015     for k=1:74
0016         %A = DD.DIG{k,1};
0017         Num1=strmatch(DD.DIG{k,1},ch_name,'exact');
0018         %Num1=strmatch(A, ch_name,'exact');
0019         if isempty(Num1) == 0 
0020            ch_name{Num1} = char(DD.DIG{k,2});
0021         else
0022            disp(['  Warning!! : channel ' DD.DIG{k,:}  ' not in sfp_file']);
0023            %Non_ch_name{k}=char(DD.DIG{k,1});
0024         end;
0025     end;
0026 end;
0027 %save ch_name;
0028 
0029 
0030

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