@folder, set path

조회 수: 2 (최근 30일)
mirch
mirch 2013년 10월 13일
댓글: Jan 2013년 10월 15일
Can any one explain me, how to use @folder? I have toolbox in this folder and I like now to set path to the matlab? It possible to do this?
Please for help

답변 (1개)

Jan
Jan 2013년 10월 13일
편집: Jan 2013년 10월 13일
Do not add the @-folder to the path, but the parent folder only. This is the meaning of the first sentence you find in the documentation you have posted the link to:
An @-folder must be contained by a path folder, but is not itself on the MATLAB path
What have you tried and which problems occur?
  댓글 수: 2
mirch
mirch 2013년 10월 15일
Sorry. Im not comming from english speaking country, so at first I didnt understand what they think.
So I must add path to this folder for example: C:\Program Files\MATLAB\R2013a\toolbox\matlab\dINN
under folder dINN is folder with "@" - @dINN
C:\Program Files\MATLAB\R2013a\toolbox\matlab\dINN\@dINN
This Is The right way? Or not?
Jan
Jan 2013년 10월 15일
편집: Jan 2013년 10월 15일
No, mirch, never add folders inside the Matlab path (see command matlabroot). This can cause serious troubles which can be very hard to debug.
If you have this folder structure:
C:\User\mirch\Matlab\MyToolbox
C:\User\mirch\Matlab\MyToolbox\@diNN
then add this to the path:
addpath('C:\User\mirch\Matlab\MyToolbox')
and save the path on demand (see also: pathtool to do this in a GUI). Afterwards the functions inside "C:\User\mirch\Matlab\MyToolbox\@diNN" are found automatically, when an argument is of type diNN.

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

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by