You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Convert a character string (row vector) c to a subscript struct s for use in subsref or subsasgn.
Example: str2subs('a{1}.b(2,:)') is equivalent to substruct('{}',{1},'.','b','()',{2,':'}).
Convert a subscript struct s to a character string.
Example: subs2str(substruct('{}',{1},'.','b','()',{2,':'}),'a') returns 'a{1}.b(2,:)'.
Cite As
Kenneth Johnson (2026). str2subs, subs2str (https://www.mathworks.com/matlabcentral/fileexchange/84365-str2subs-subs2str), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (3.9 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
