


check given coordinate is valid or not
[usage]
result = vb_is_invalid_coordinate(coord)
[input]
coord : <required> coordinate that you want to check
[output]
result : <<boolean>>
: true : invalid
: false : valid
[note]
[history]
2007-04-13 (Sako) initial version
Copyright (C) 2011, ATR All Rights Reserved.
License : New BSD License(see VBMEG_LICENSE.txt)

0001 function result = vb_is_invalid_coordinate(coord) 0002 % check given coordinate is valid or not 0003 % [usage] 0004 % result = vb_is_invalid_coordinate(coord) 0005 % [input] 0006 % coord : <required> coordinate that you want to check 0007 % [output] 0008 % result : <<boolean>> 0009 % : true : invalid 0010 % : false : valid 0011 % [note] 0012 % 0013 % [history] 0014 % 2007-04-13 (Sako) initial version 0015 % 0016 % Copyright (C) 2011, ATR All Rights Reserved. 0017 % License : New BSD License(see VBMEG_LICENSE.txt) 0018 FUNC_NAME = 'vb_is_invalid_coordinate'; 0019 if ~exist('coord', 'var') 0020 error('<%s> coord is a required parameter', FUNC_NAME); 0021 end 0022 0023 % return value 0024 result = false; 0025 0026 % arrange to [1 x N] 0027 coord = vb_util_arrange_list(coord, 1); 0028 0029 for ic = 1:size(coord, 2) 0030 if isnan(coord(ic)) 0031 result = true; 0032 return; 0033 end 0034 end 0035 0036 return; 0037 %%% END OF FILE %%%