mypath.m
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.
Citar como
Malcolm Wood (2024). mypath.m (https://www.mathworks.com/matlabcentral/fileexchange/10371-mypath-m), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspiración para: exportToZip: Identifies the dependencies of an M-file and creates a ZIP file, exporttozip
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.