strjust
Justify strings
📝Syntax
J = strjust(str)
J = strjust(str, side)
📥Input Arguments
Parameter Description
str characters vector, cell of characters or string array.
side 'left', 'center', 'right' (default).
📤Output Arguments
Parameter Description
J justified text
📄Description

J = strjust(str, side) returns the text that is justified on the side specified by side.

💡Examples
S = ["a"; "ab"; "abc"; "abcd"];
J = strjust (S)
J = strjust (S, 'left')
J = strjust (S, 'center')
J = strjust (S, 'right')
J = strjust('                 text', 'center')
🔗See Also
blanks
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub