strjust
Justify strings.
y=strjust(s,just)
Inputs
s A string or an array of strings.
just A string specifying the type of justification required:"right","center" or "left".
Outputs
y An array of strings of the same size as the input, with each string justified according to the specified option.


Description
Each string is justfied independently while preserving its length, and so if it does not contain leading or trailing blanks, no justification is performed.