Skip to Main Content Skip to Search
Product Documentation

strjust - Justify character array

Syntax

T = strjust(S)
T = strjust(S, 'right')
T = strjust(S, 'left')
T = strjust(S, 'center')

Description

T = strjust(S) or T = strjust(S, 'right') returns a right-justified version of the character array S.

T = strjust(S, 'left') returns a left-justified version of S.

T = strjust(S, 'center') returns a center-justified version of S.

See Also

deblank | strtrim

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS