why do i recieve a warning message: Warning: Name is nonexistent or not a directory

1 次查看(过去 30 天)
I create a sturtup.m file, but i receive a warning message:(Warning: Name is nonexistent or not a directory: C:\Program > In path (line 109) In addpath (line 86) In startup (line 1) Warning: Name is nonexistent or not a directory: Files\MATLAB\R2015a\BNT > In path (line 109) In addpath (line 86) In startup (line 1)
Warning from path (line 109) matlabpath([cPath1{:} cPath2{:}]); K>> ) my Windows startup.m file reads as follows:
addpath C:\Program Files\MATLAB\MATLAB Production Server\R2015a\BNT
add_BNT_to_path
format compact
dbstop if error
dbstop if warning

回答(1 个)

Walter Roberson
Walter Roberson 2023-9-29
Change
addpath C:\Program Files\MATLAB\MATLAB Production Server\R2015a\BNT
to
addpath('C:\Program Files\MATLAB\MATLAB Production Server\R2015a\BNT')
Each space in the original command is being interpreted as the end of an argument.

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by