strrepx
Version 1.0.0.0 (501 Bytes) by
Mathias Benedek
Replace string with another in any location of a mixed cell/struct - data structure
1K Downloads
Updated
12 Mar 2007
No License
v = STRREPX(v,s1,s2) replaces all occurrences of the string s1 in the data structure v with the string s2. The new data structure is returned.
It recursively searches all cells and fields of the data structure v for strings and applies the MATLAB function strrep on them.
Useful e.g. for adapting SPM Batch data structures.
Cite As
Mathias Benedek (2024). strrepx (https://www.mathworks.com/matlabcentral/fileexchange/14197-strrepx), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14SP3
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Structures in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Code is simplified considering the comment by B. Roossien |