How to load a .mat file from the parent directory?
Ältere Kommentare anzeigen
How to load a file which is in the parent directory of the running script?
Akzeptierte Antwort
Weitere Antworten (1)
Simpler and more efficient with a relative pathname using the dotdot-folder name to access the parent folder:
load('../mymatfile.mat')
Kategorien
Mehr zu Search Path 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!