Home > functions > device > vb_info_set_Nrepeat.m

vb_info_set_Nrepeat

PURPOSE ^

<<setter>> set Nrepeat value to MEGinfo or EEGinfo

SYNOPSIS ^

function info = vb_info_set_Nrepeat(info, value)

DESCRIPTION ^

 <<setter>> set Nrepeat value to MEGinfo or EEGinfo
 [usage]
   info = info_set_trial_number(info, value)
 [input]
    info : <required> <<struct>> MEGinfo or EEGinfo
   value : <optional> number of trial [0]
 [output]
    info : updated info
 [note]
   Nrepeat field keeps the number of all the trials
 [history]
   2008-04-15 (Sako) initial version

 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:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function info = vb_info_set_Nrepeat(info, value)
0002 % <<setter>> set Nrepeat value to MEGinfo or EEGinfo
0003 % [usage]
0004 %   info = info_set_trial_number(info, value)
0005 % [input]
0006 %    info : <required> <<struct>> MEGinfo or EEGinfo
0007 %   value : <optional> number of trial [0]
0008 % [output]
0009 %    info : updated info
0010 % [note]
0011 %   Nrepeat field keeps the number of all the trials
0012 % [history]
0013 %   2008-04-15 (Sako) initial version
0014 %
0015 % Copyright (C) 2011, ATR All Rights Reserved.
0016 % License : New BSD License(see VBMEG_LICENSE.txt)
0017 
0018 % --- CHECK ARGUMENTS --- %
0019 if ~exist('info', 'var'), info = []; end
0020 if ~exist('value', 'var'), value = []; end
0021 [info, value] = inner_check_arguments(info, value);
0022 
0023 % --- MAIN PROCEDURE --------------------------------------------------------- %
0024 %
0025 info.Nrepeat = value;
0026 return;
0027 %
0028 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0029 
0030 % --- INNER FUNCTIONS -------------------------------------------------------- %
0031 %
0032 % --- inner_check_arguments()
0033 %
0034 function [info, value] = inner_check_arguments(info, value)
0035 func_ = mfilename;
0036 if isempty(info)
0037   error('(%s)info is a required parameter', func_);
0038 end
0039 
0040 if isempty(value)
0041   value = 0;
0042 end
0043 return;
0044 %
0045 % --- end of inner_check_arguments()
0046 %
0047 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0048 
0049 %%% END OF FILE %%%

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