extract substring

substr extracts a substring of length len from the string str, starting at the specified offset.
3,9K téléchargements
Mise à jour 18 août 2009

Afficher la licence

substr extracts a substring of length len from the string str, starting at the specified offset. In this version, the first character position has offset 1. (In Acklam's original code, the first character position has offset 0, but this is inconsistent with Matlab conventions). If offset is negative, the position is reckoned by counting backwards from the end of the string. If len is omitted, substr returns everything to the end of the string. If len is negative, substr removes -len characters from the end of the string.

Citation pour cette source

Phillip M. Feldman (2026). extract substring (https://fr.mathworks.com/matlabcentral/fileexchange/25064-extract-substring), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2008b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0