FUNCTION REFERENCE
pad
Pad each string to a minimum width.
Pad each string to a minimum width.
Syntax
s = pad(s,width,side,character)side defaults to right; character defaults to a space. pad(s,4,'-') pads with '-'. both assigns an odd extra character to the right.
Example
pad("a",4,'both','-')Differences from MATLAB: bounded 2-D string storage (65536 elements, 2 MiB text); MAT persistence and N-D strings are not implemented.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.