strpad

버전 1.1.0 (2.93 KB) 작성자: wfH
Add leading or trailing characters to character vector or cell array of character vectors in a single line of code.
다운로드 수: 28
업데이트 날짜: 2020/4/19

라이선스 보기

In newer version (R2016b), it is easy to add leading or trailing characters to strings in a single line of code.
Just call the built-in function 'pad'.

So, I created this function for users with older version.
This function follows the same behaviour as the builtin.
Futhermore, the padding character, "padChar", is no need to be exactly single character.

인용 양식

wfH (2024). strpad (https://www.mathworks.com/matlabcentral/fileexchange/71674-strpad), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2018a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
도움

도움 받은 파일: String Support API, STRPAD String Pad for Matlab

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0

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

1.0.0