strpad

Add leading or trailing characters to character vector or cell array of character vectors in a single line of code.

Download
Download

You are now following this Submission

Cite As

wfH (2026). strpad (https://www.mathworks.com/matlabcentral/fileexchange/71674-strpad), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: String Support API, STRPAD String Pad for Matlab

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0

Fix bugs when "padChar" is not a single character.
Add compatibility to string array.
Revise H1 line section.

Download
1.0.0

Download