Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
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.
Citation pour cette source
wfH (2026). strpad (https://fr.mathworks.com/matlabcentral/fileexchange/71674-strpad), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : String Support API, STRPAD String Pad for Matlab
Informations générales
- Version 1.1.0 (2,93 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.1.0 | Fix bugs when "padChar" is not a single character.
|
||
| 1.0.0 |
