FUNCTION REFERENCE

strjust

Justify a character array.

Justify a character array.

Syntax

T = strjust(S)

Syntax

T = strjust(S, 'right')

Syntax

T = strjust(S, 'left')

Syntax

T = strjust(S, 'center')

Moves the text of each row to the right (default), left or center by

moving its leading and trailing blanks. S is a character array or a cell

array of them.

Example

strjust('a  ')   % '  a'

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