function mustBeText(text)
%mustBeText Validate that value is string, char, or cellstr
%   mustBeText(TEXT) throws an error if TEXT is not a string, char, or
%   cellstr. For char, the shape must be row vector. 
%
%   See also mustBeTextScalar, mustBeNonzeroLengthText, validators. 
    
% Copyright 2020 The MathWorks, Inc.

    if ~istext(text)
        throwAsCaller(MException(message("MATLAB:validators:mustBeText")))
    end

end