Why does ADDPATH not allow me to add a directory with a space in it in MATLAB 7.7 (R2008b)?
7 ビュー (過去 30 日間)
古いコメントを表示
When I try to add a directory with a space in it using the ADDPATH command:
addpath C:\Program Files\
I get the following warning:
Warning: Name is nonexistent or not a directory: C:\Program.
It seems that ADDPATH does not like the space in the directory name.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
When using the command syntax of ADDPATH, spaces between string inputs are interpreted as separators between arguments. To ensure that ADDPATH interprets the directory as a single argument, use the function syntax with parenthesis and single quotes around the directory name. For example:
addpath('C:\Program Files')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!