Code Generation Error with Directory Path Names Containing Special Characters such as '$'

조회 수: 2 (최근 30일)
How do I generate code in a directory that contains '$' in it's directory path name?

채택된 답변

MathWorks Support Team
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개)

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by