int2strz.m
버전 1.0.0.0 (2.05 KB) 작성자:
Carlos Adrian Vargas Aguilera
Same as int2str but with zero padding to the left.
This is a really simple program that makes the same as int2str but pads with zeros those integers with less digits than the maximum one.
It is useful (I hope) when our program reads files with names like: xxx001.dat, xxx002.dat, ..., xxx099.dat, xxx100.dat, etc., and we don't want to make use of if's to put zeros to int2str outputs (great isn't it).
int2strz(X,N) pads up to N digits (see the screenshot).
인용 양식
Carlos Adrian Vargas Aguilera (2024). int2strz.m (https://www.mathworks.com/matlabcentral/fileexchange/12973-int2strz-m), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Numeric Types에 대해 자세히 알아보기
태그
도움
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 | Fixed minor bug for no numeric inputs, or a single zero.
|