Home > functions > device > eeg > biosemi > vb_latest_version.m

vb_latest_version

PURPOSE ^

return the latest version

SYNOPSIS ^

function my_version = vb_latest_version(target_name)

DESCRIPTION ^

 return the latest version
 [usage]
   my_version = vb_latest_version(target_name)
 [input]
   target_name : <required> target name whose version you want to get
 [output]
    my_version : the latest version
               :  - if some errors occur, return 0.0 with warning message
 [note]
   acceptable target_name is as follows
     'EEGinfo'
 [history]
   2006-12-05 (Sako) initial version for 'EEGinfo'

 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 my_version = vb_latest_version(target_name)
0002 % return the latest version
0003 % [usage]
0004 %   my_version = vb_latest_version(target_name)
0005 % [input]
0006 %   target_name : <required> target name whose version you want to get
0007 % [output]
0008 %    my_version : the latest version
0009 %               :  - if some errors occur, return 0.0 with warning message
0010 % [note]
0011 %   acceptable target_name is as follows
0012 %     'EEGinfo'
0013 % [history]
0014 %   2006-12-05 (Sako) initial version for 'EEGinfo'
0015 %
0016 % Copyright (C) 2011, ATR All Rights Reserved.
0017 % License : New BSD License(see VBMEG_LICENSE.txt)
0018 
0019 my_version = 0.0;
0020 
0021 if ~exist('target_name', 'var') || isempty(target_name)
0022   warning('target_name is a required parameter');
0023   return;
0024 end
0025 
0026 switch target_name
0027   case  'EEGinfo'
0028     my_version = 0.1;
0029   otherwise
0030     warning('unknown target_name : %s', target_name);
0031     return;
0032 end
0033 
0034 %%% END OF FILE %%%

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