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