mustBeText

Checks that value is piece of text or raise an error.

Syntax

  • mustBeText(var)

  • mustBeText(var, argPosition)

  • C++: void mustBeText(const ArrayOfVector& args, int argPosition)

Input argument

  • var - a variable: a string array, a cell of strings, or row vector characters array.

  • argPosition - a positive integer value: Position of input argument.

Description

mustBeText that value is piece of text or raise an error.

Example

mustBeText('true')
mustBeText(["f", "ff"])
mustBeText("hello")

See also

ischar, isstring.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated