Code Generation Error with Directory Path Names Containing Special Characters such as '$'
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 2 Dez. 2021
Beantwortet: MathWorks Support Team
am 6 Jan. 2022
How do I generate code in a directory that contains '$' in it's directory path name?
Akzeptierte Antwort
MathWorks Support Team
am 2 Dez. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!