Home > vbmeg > functions > device > eeg > brainamp > vb_brainamp_get_info.m

vb_brainamp_get_info

PURPOSE ^

get measurement info from brainamp file.

SYNOPSIS ^

function [channel_label] = vb_brainamp_get_info(brainamp_file)

DESCRIPTION ^

 get measurement info from brainamp file.

 [USAGE]
    [channel_label] = vb_brainamp_get_info(brainamp_file);

 [INPUT]
    brainamp_file : brain amp file(.eeg)

 [OUTPUT]
    channel_label : {1, Nch} list of channel name.

 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 function [channel_label] = vb_brainamp_get_info(brainamp_file)
0002 % get measurement info from brainamp file.
0003 %
0004 % [USAGE]
0005 %    [channel_label] = vb_brainamp_get_info(brainamp_file);
0006 %
0007 % [INPUT]
0008 %    brainamp_file : brain amp file(.eeg)
0009 %
0010 % [OUTPUT]
0011 %    channel_label : {1, Nch} list of channel name.
0012 %
0013 % Copyright (C) 2011, ATR All Rights Reserved.
0014 % License : New BSD License(see VBMEG_LICENSE.txt)
0015 
0016 %
0017 % --- Previous check
0018 %
0019 if nargin ~= 1
0020     error('Please check usage of the function');
0021 end
0022 if exist(brainamp_file, 'file') ~= 2
0023     error('Specified brain amp file is invalid.');
0024 end
0025 
0026 %
0027 % --- Main Procedure
0028 %
0029 
0030 % read header
0031 sFile = in_fopen_brainamp(brainamp_file);
0032 
0033 
0034 channel_label = {sFile.channelmat.Channel.Name}';

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