필터 지우기
필터 지우기

What is wrong with this path?

조회 수: 2 (최근 30일)
Adam Levschuk
Adam Levschuk 2020년 9월 2일
댓글: Walter Roberson 2020년 9월 3일
Hello, I have a very very simple question and it has constantly vexxed me. I have tried but i cannot wrap my head around the matlab paths. Im always egtting warning messages.
Could anyone tell me what is wrong with this? i have included a screenshot.
Here is the error message that i am getting:
Warning: Name is nonexistent or not a directory: /Users/adamlevschuk/Documents/BMEG 599/Gait Analysis/Quaternions
> In path (line 109)
In addpath (line 86)
In xioTechTracking (line 5)
Thank you for your help
>>
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 9월 2일
For helping find the problem:
dinfo = dir('*Q*');
Qnames = {dinfo.name};
for K = 1 : length(Qnames)
QN = Qnames{K};
fprintf('Found name |%s| which is length %d\n. Its character codes are: ', QN, length(QN));
disp(double(QN));
end
That is, I hypothesize that you have an invisible character as part of the directory name, such as a space at the end.

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

채택된 답변

Nikita Agrawal
Nikita Agrawal 2020년 9월 3일
To find the right path, run without
addpath('xyz')
And then to find what you are looking from that path, matlab will recommend you how to add the path for missing information.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 9월 3일
MATLAB will not generally recommend how to find the path. It does in some cases, but it is never clear what algorithm it is using to make the suggestions.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by