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);
// output
I love
left(X,n)
X is a string scalar or vector.
n is a positive integer.
Return the first n characters of string X.
left("I love this game!", 6);
// output
I love