Check whether directory is on current MATLAB path

버전 1.2 (2.75 KB) 작성자: Rody Oldenhuis
Small low-level utility to check whether (list of) directories is/are on the current search path
다운로드 수: 238
업데이트 날짜: 2020/5/2

ISONPATH checks if given directory is on the current MATLAB path. Vectorized in the sense that it accepts cell-arrays of strings.
y = ISONPATH(dirs) for string [dirs] checks whether the specified directory is on the MATLAB search path. The output [y] is a logical scalar equal to 'true' when the directory is on the path, 'false' otherwise.

In case [dirs] is a cell array of strings, the same check is performed for each entry in [dirs]. In this case, the output [y] is a logical array the same size as [dirs].

Note that a case-INsensitive comparison is used on windows platforms, while exact case match is required for Linux/Mac platforms.

인용 양식

Rody Oldenhuis (2024). Check whether directory is on current MATLAB path (https://github.com/rodyo/FEX-isonpath/releases/tag/v1.2), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
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!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.2

See release notes for this release on GitHub: https://github.com/rodyo/FEX-isonpath/releases/tag/v1.2

1.1.0.0

[linked to Github]

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.