Home > vbmeg > functions > device > acqdata > vb_posfile_load_transinfo.m

vb_posfile_load_transinfo

PURPOSE ^

read and return trans_info from POS-MAT file

SYNOPSIS ^

function trans_info = vb_posfile_load_transinfo(posfile)

DESCRIPTION ^

 read and return trans_info from POS-MAT file
 [usage]
   trans_info = vb_posfile_load_transinfo(posfile)
 [input]
   posfile : <required> <<file>> POS-MAT file
 [output]
   trans_info : <<struct>> trans_info
 [note]

 [history]
   2008-03-12 (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 trans_info = vb_posfile_load_transinfo(posfile)
0002 % read and return trans_info from POS-MAT file
0003 % [usage]
0004 %   trans_info = vb_posfile_load_transinfo(posfile)
0005 % [input]
0006 %   posfile : <required> <<file>> POS-MAT file
0007 % [output]
0008 %   trans_info : <<struct>> trans_info
0009 % [note]
0010 %
0011 % [history]
0012 %   2008-03-12 (Sako) initial version
0013 %
0014 % Copyright (C) 2011, ATR All Rights Reserved.
0015 % License : New BSD License(see VBMEG_LICENSE.txt)
0016 
0017 % --- CHECK ARGUMENTS --- %
0018 if ~exist('posfile', 'var'), posfile = ''; end
0019 [posfile] = inner_check_arguments(posfile);
0020 
0021 % --- MAIN PROCEDURE --------------------------------------------------------- %
0022 %
0023 trans_info = '';
0024 load(posfile, 'trans_info');
0025 return;
0026 %
0027 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0028 
0029 % --- INNER FUNCTIONS -------------------------------------------------------- %
0030 %
0031 function [posfile] = inner_check_arguments(posfile)
0032 func_ = mfilename;
0033 if isempty(posfile)
0034   error('(%s)posfile is a required parameter', func_);
0035 end
0036 
0037 if exist(posfile, 'file') ~= 2
0038   error('(%s)cannot find posfile: %s', func_, posfile);
0039 end
0040 return;
0041 %
0042 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0043 
0044 % --- END OF FILE --- %

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