Home > functions > gui > preAnalysis > trial_extractor > private > vb_tag_get_trial_index.m

vb_tag_get_trial_index

PURPOSE ^

return data index of trial data according to this tag.

SYNOPSIS ^

function [trial_ix] = vb_tag_get_trial_index(tag_obj)

DESCRIPTION ^

 return data index of trial data according to this tag.
 [USAGE]
    [trial_ix] = vb_tag_get_trial_index(tag_obj);
 [IN]
    tag_obj : tag object.
 [OUT]
    trial_ix : trial index

 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 [trial_ix] = vb_tag_get_trial_index(tag_obj)
0002 % return data index of trial data according to this tag.
0003 % [USAGE]
0004 %    [trial_ix] = vb_tag_get_trial_index(tag_obj);
0005 % [IN]
0006 %    tag_obj : tag object.
0007 % [OUT]
0008 %    trial_ix : trial index
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 %
0014 % --- Previous check
0015 %
0016 if ~exist('tag_obj', 'var')
0017     error('tag_obj is a required parameter.');
0018 end
0019 
0020 %
0021 % --- Main Procedure
0022 %
0023 trial_ix = tag_obj.trial_ix;

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005