changing directory in matlab
Ältere Kommentare anzeigen
does anyone know how to change matlab directory? for example now current directory is f:\a\b\c and i want to change to f:\a but without telling f:\ . in other words, only with giving 'a' (the name of folder) and without telling f:\ , MATLAB itself find f:\a. does anyone know how can i use this: in this link: http://www.mathworks.com/matlabcentral/fileexchange/12002-jump there is a m-file for changing MATLAB current directory to the folder matching the specified pattern. But i cant use this. what can i do ?
1 Kommentar
Ahmed Aisa
am 15 Dez. 2016
Hello i would like to someone help me for design system like Electrolyzer with Hydrogen tank. Best regards
Akzeptierte Antwort
Weitere Antworten (1)
Friedrich
am 31 Aug. 2011
0 Stimmen
Hi,
I think this m file won't help much here since it uses the which commands to search for files with a specific name and which are on the MATLAB path only.
Are your folders, where you like to jump to, on the MATLAB path? If so, you could parse the MATLAB path for it and jump to it.
1 Kommentar
mohammad
am 31 Aug. 2011
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!