left

Syntax

left(X,n)

Arguments

X is a string scalar or vector.

n is a positive integer.

Details

Return the first n characters of string X.

Examples

$ left("I love this game!", 6);
I love