FUNCTION REFERENCE

strcmp

Compare text, case-sensitive.

Compare text, case-sensitive.

Syntax

tf = strcmp(a, b)

Returns true if a and b are the same text. If one input is a cell array, the result is a logical array of the same size. Two cell arrays compare element by element. Other input types give false.

Example

strcmp({'a','b'}, 'a')   % [true false]

Differences from MATLAB: none known.

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