Execute several m-files one after the other
Mostra commenti meno recenti
For an import routine I would like to execute different m-files one after the other. Here at, the file source is then asked:
[path] = uigetdir('C:\Users\gxxxx\Desktop\','Please select folder ...');
if ~ischar(path)
error('Failure!')
return;
end
How can I, on the one hand, control that the various m-files are opened and executed one after the other, and how can I bypass the query shown above when specifying the path and always use the path of the m-file as the source directory?
2 Commenti
"...I would like to execute different m-files..."
Are they scripts or functions?
Do they need to be run in the current directory?
Are their names unique, or do other folder/s contain scripts/functions with the same name/s?
Mepe
il 31 Ago 2020
Risposte (1)
Walter Roberson
il 31 Ago 2020
0 voti
Provide your own uigetdir.m that has the behavior you want. Including possibly having set up ahead of time which directories you want to read from, and having your uigetdir() supply the next directory in sequence each time it is called.
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!