Sie verfolgen jetzt diese Einreichung
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
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.
Zitieren als
Malcolm Wood (2026). mypath.m (https://de.mathworks.com/matlabcentral/fileexchange/10371-mypath-m), MATLAB Central File Exchange. Abgerufen .
Quellenangaben
Inspiriert: exportToZip: Identifies the dependencies of an M-file and creates a ZIP file, exporttozip
Allgemeine Informationen
- Version 1.2.0.1 (1,54 KB)
Kompatibilität der MATLAB-Version
- Kompatibel mit allen Versionen
Plattform-Kompatibilität
- Windows
- macOS
- Linux
| Version | Veröffentlicht | Versionshinweise | Action |
|---|---|---|---|
| 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. |
