Code Generation Error with Directory Path Names Containing Special Characters such as '$'
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2021년 12월 2일
답변: MathWorks Support Team
2022년 1월 6일
How do I generate code in a directory that contains '$' in it's directory path name?
채택된 답변
MathWorks Support Team
2021년 12월 2일
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!