Constructing a List of Filenames Using the New String Handling Features in Release 2016b
I have a spreadsheet with a list of filenames in one column whose absolute location is defined relative to a file in another column. I want to be able to construct the absolute path for all of them so I can compare them with another list of absolute path filenames.
To do this, I try out the new string handling features in Release 2016b for the first time, learning as I go.
Features used in thiscode-alongstyle video include:
- tableandreadtablewith'TextType','string'
- string,strings,erase,contains, scalar and array concatenation with+andregexp
- arrayfunandcellfun
- …and noforloops!
Follow me on Twitter (@stuartmcgarrity) if you want to be notified when I post.
Play the video in full screen mode for a better viewing experience.
- Category:
- Code-Along,
- Format: Video
Comments
To leave a comment, please clickhereto sign in to your MathWorks Account or create a new one.