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,:)'.
引用格式
Kenneth Johnson (2025). str2subs, subs2str (https://www.mathworks.com/matlabcentral/fileexchange/84365-str2subs-subs2str), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2020b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |