Struct String Replace
Version 1.0.0.0 (1,57 ko) par
Ross Hatton
Replace strings in nested structure and cell arrays.
This function recursively traverses an arbitrarily deeply nested set of structure and cell arrays, finds all instances of a given string, and replaces it with a new string.
Beyond any simple text operations, this function is useful for updating a set of pathnames stored within a large structure if the associated files are relocated.
Citation pour cette source
Ross Hatton (2026). Struct String Replace (https://fr.mathworks.com/matlabcentral/fileexchange/27858-struct-string-replace), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2010a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Language Fundamentals > Data Types > Characters and Strings >
- MATLAB > Language Fundamentals > Data Types > Structures >
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
