Slashes Fix
Versión 1.0.0 (1,12 KB) por
Valerio Rubino
Replace \ with /. Helpful to use sprintf, compose etc.
Some functions (e.g. compose, sprintf, fprintf) use the backward slash ('\') as escape character; therefore, any format specifier containing a backward slash result into error (Warning: Escaped character '\%' is not valid.). This function simply change any backward to forward slash, coping with the issue.
e.g. sprintf(slashes_fix(formatSpec),txt)
Citar como
Valerio Rubino (2024). Slashes Fix (https://www.mathworks.com/matlabcentral/fileexchange/90471-slashes-fix), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2021a
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 |