Warning: Name is nonexistent or not a directory

1 visualización (últimos 30 días)
Panty
Panty el 11 de Sept. de 2014
Comentada: Panty el 11 de Sept. de 2014
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 comentarios
Star Strider
Star Strider el 11 de Sept. de 2014
5 name is a built-in MATLAB function.
Name ‘functions’ something else.
Panty
Panty el 11 de Sept. de 2014
Thank you Star as well :)

Iniciar sesión para comentar.

Respuesta aceptada

José-Luis
José-Luis el 11 de Sept. de 2014
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()
  3 comentarios
José-Luis
José-Luis el 11 de Sept. de 2014
Editada: José-Luis el 11 de Sept. de 2014
I don't know where your folder is located. What's the entire directory look like. If it is Windows, it should be something like
addpath('C:\Program Files\somefolder\functions')
Please remember to accept an answer once it has solved your problem.
Panty
Panty el 11 de Sept. de 2014
Cool it worked.. Thx man! accepted :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by