FUNCTION REFERENCE

mustBeText

Validate that value is text.

Validate that value is text.

Syntax

mustBeText(A)

Throws an error if A is not a character vector, string array, or cell array of character vectors.

Example

mustBeText(["a" "b"])

Differences from MATLAB: None.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.