Home > vbmeg > functions > device > vb_info_set_transinfo.m

vb_info_set_transinfo

PURPOSE ^

set transform information to MEGinfo or EEGinfo

SYNOPSIS ^

function [info] = vb_info_set_transinfo(info, trans_info)

DESCRIPTION ^

 set transform information to MEGinfo or EEGinfo
 [usage]
   [info] = vb_info_set_transinfo(info, trans_info)
 [input]
         info : <required> <<struct>> MEGinfo or EEGinfo
   trans_info : <optional> <<struct>> TransInfo - transform information
 [output]
         info : updated struct (MEGinfo or EEGinfo)
 [note]
   For MEGinfo and EEGinfo, both trans_info formats are the same,
   info.device_info.TransInfo
 [history]
   2011-05-27 (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_transinfo(info, trans_info)
0002 % set transform information to MEGinfo or EEGinfo
0003 % [usage]
0004 %   [info] = vb_info_set_transinfo(info, trans_info)
0005 % [input]
0006 %         info : <required> <<struct>> MEGinfo or EEGinfo
0007 %   trans_info : <optional> <<struct>> TransInfo - transform information
0008 % [output]
0009 %         info : updated struct (MEGinfo or EEGinfo)
0010 % [note]
0011 %   For MEGinfo and EEGinfo, both trans_info formats are the same,
0012 %   info.device_info.TransInfo
0013 % [history]
0014 %   2011-05-27 (Sako) initial version
0015 %
0016 % Copyright (C) 2011, ATR All Rights Reserved.
0017 % License : New BSD License(see VBMEG_LICENSE.txt)
0018 
0019 % --- CHECK ARGUMENTS --- %
0020 if ~exist('info', 'var'), info = []; end
0021 if ~exist('trans_info', 'var'), trans_info = []; end
0022 [info, trans_info] = inner_check_arguments(info, trans_info);
0023 
0024 % --- MAIN PROCEDURE --------------------------------------------------------- %
0025 %
0026 info.device_info.TransInfo = trans_info;
0027 return;
0028 %
0029 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0030 
0031 
0032 % --- INNER FUNCTIONS -------------------------------------------------------- %
0033 %
0034 % --- inner_check_arguments()
0035 %
0036 function[info, trans_info] = inner_check_arguments(info, trans_info)
0037 func_ = mfilename;
0038 if isempty(info)
0039   error('(%s) info is a required parameter', func_);
0040 end
0041 
0042 if isempty(trans_info)
0043   % require no action
0044 end
0045 return;
0046 %
0047 % --- end of inner_check_arguments()
0048 %
0049 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0050 
0051 % --- END OF FILE --- %

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