function checkIsRGBVector(val)
%

%   Copyright 2010-2011 The MathWorks, Inc.
if numel(val)~=3 || ~isfloat(val) || any(val<0) || any(val>1)
    % Internal message to help debugging. Not intended to be user-visible.
    error(message('Spcuilib:dialogmgr:ErrorMustBeFloat'));
end
