Check whether directory is on current MATLAB path

Small low-level utility to check whether (list of) directories is/are on the current search path
238 download
Aggiornato 2 mag 2020

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.

Cita come

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

Compatibilità della release di MATLAB
Creato con R2010b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Search Path in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate

Versione Pubblicato Note della release
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

Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.