mypath.m

버전 1.2.0.1 (1.54 KB) 작성자: Malcolm Wood
Displays or returns the MATLAB path, omitting directories which are inside the MATLAB "toolbox" ...
다운로드 수: 1.8K
업데이트 날짜: 2016/9/1

라이선스 보기

Those of us who have a lot of The MathWorks' toolboxes find that every time we type "path" at the MATLAB command line, we have to scroll up several pages before we find what we're looking for.
Since most of the time we're interested in our own working directories, and since most of us don't do our work in directories under $matlabroot/toolbox, this function prints the (hopefully much shorter) list of directories which are on the MATLAB path but aren't inside $matlabroot/toolbox.

Just type:
>> mypath
to see those directories.

Alternatively, if you want to do something with the result, type:
>> p = mypath
to get the same list as a cell array of strings.

인용 양식

Malcolm Wood (2024). mypath.m (https://www.mathworks.com/matlabcentral/fileexchange/10371-mypath-m), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R12.1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.1

Updated license

1.2.0.0

Added copyright line.

1.1.0.0

Review

1.0.0.0

Response to suggestion. Now uses pathsep instead of hardcoded semi-colon.