str2subs, subs2str
Versión 1.0.0 (3,9 KB) por
Kenneth Johnson
Convert a string to/from a subscript struct for use in subsref and subsasgn.
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,:)'.
Citar como
Kenneth Johnson (2024). str2subs, subs2str (https://www.mathworks.com/matlabcentral/fileexchange/84365-str2subs-subs2str), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2020b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |