Warning: Name is nonexistent or not a directory

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

Please try
exists('your_file')
Panty
Panty 2014년 9월 11일
편집: Panty 2014년 9월 11일
exist('functions')
ans =
5
5 name is a built-in MATLAB function.
Name ‘functions’ something else.
Panty
Panty 2014년 9월 11일
Thank you Star as well :)

댓글을 달려면 로그인하십시오.

 채택된 답변

José-Luis
José-Luis 2014년 9월 11일

0 개 추천

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

Panty
Panty 2014년 9월 11일
i got a folder in my pc named "functions". Inside there I got Matlab functions that I want to use.
So what shall I write in my script?
José-Luis
José-Luis 2014년 9월 11일
편집: José-Luis 2014년 9월 11일
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 2014년 9월 11일
Cool it worked.. Thx man! accepted :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call MATLAB from C에 대해 자세히 알아보기

질문:

2014년 9월 11일

댓글:

2014년 9월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by