Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
_________
This function can help if you:
- frequently access/write files/folders which are not necessarily on your MATLAB path
- Do lots of load/save type operations to various different destinations
- Use dialogue functions like uigetfile() and uigetdir()
_________
What it does:
If you have a path string in your current workspace, you can add it to a single database file.
At a later date, use a simple command to retrieve the path for reuse.
The database file is automatically created; there is no need to edit it manually.
_________
How I use it:
I write toolboxes. So in the toolbox I'm currently writing, users load image files, they load calibration files, and they load results files.
Each time uigetfile() is used to locate a file (of a given type), I use these functions to get the directory path of the last-accessed file of the required type. I pass this to the DefaultName input for uigetfile.
Result: The uigetfile() dialogue box goes to the most likely folder in which that file type is stored, instead of starting in the MATLAB current directory.
Cita come
Thomas Clark (2026). Default_Path_Retrieval (https://it.mathworks.com/matlabcentral/fileexchange/24965-default_path_retrieval), MATLAB Central File Exchange. Recuperato .
Riconoscimenti
Ispirato da: M-file Header Template
Informazioni generali
- Versione 1.1.0.0 (4,51 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
