Code covered by the BSD License  

Highlights from
Struct String Replace

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.57 KB File ID: #27858

Struct String Replace

by Ross Hatton

 

09 Jun 2010

Replace strings in nested structure and cell arrays.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Ross Hatton 09 Jun 2010 14:33:26
string Ross Hatton 09 Jun 2010 14:33:27
data export Ross Hatton 09 Jun 2010 14:33:27
string replacement Ross Hatton 09 Jun 2010 14:33:27

Contact us at files@mathworks.com