You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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).
Cite As
Carlos Adrian Vargas Aguilera (2026). int2strz.m (https://www.mathworks.com/matlabcentral/fileexchange/12973-int2strz-m), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: daylightGMT.m
General Information
- Version 1.0.0.0 (2.05 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Fixed minor bug for no numeric inputs, or a single zero.
|
