Warning: Name is nonexistent or not a directory
2 次查看(过去 30 天)
显示 更早的评论
Hi guys,
Every time I run my script I got at the following Warning:
"Warning: Name is nonexistent or not a directory: functions > In path at 110 In addpath at 87 In Fixed_parameter_Normal_Wishart at 13"
In my code-script I am adding the file in the path by using the command: addpath('functions')
What is going wrong here????
Many thanks
4 个评论
采纳的回答
José-Luis
2014-9-11
Look at the documentation on exist(). functions() is a built-in Matlab function, it is not a path. But more importantly, paths should look like:
c:/somewhere or /home/somewhere.
You must pass the path (directory) of where the function you want to use resides, not the name of the function herself to addpath()
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!