Code Generation Error with Directory Path Names Containing Special Characters such as '$'
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 2 de Dic. de 2021
Respondida: MathWorks Support Team
el 6 de En. de 2022
How do I generate code in a directory that contains '$' in it's directory path name?
Respuesta aceptada
MathWorks Support Team
el 2 de Dic. de 2021
Special characters are not supported to specify directory path names for MATLAB coder. For in-line functions this limitation for "codegen" has been documented. Please scroll down to the details of the ‘-d out_folder’ Input Arguments: https://www.mathworks.com/help/coder/ref/codegen.html.
As a workaround, the folder containing the $ can be mapped to a new drive letter and code generation can be run from that drive. For example, if code generation is taking place in “D:\scratch\my$”. The folder can be mapped to, for instance, "M:" drive to build the same project. After mapping the folder to the new drive letter, use "M:\<your_path>" in MATLAB for code generation.
If the "working folder" or "build folder" is set to the folder with $ on "Generate > More Settings > Paths", replace the start of the path with the mapped drive letter, to avoid the $.
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!