right

Syntax

right(X, n)

Details

Return the last n characters of string X.

Parameters

X is a string scalar or vector.

n is a positive integer.

Returns

A STRING scalar or vector.

Examples

right("I love this game!", 6);


game!