How to load a .mat file from the parent directory?
Show older comments
How to load a file which is in the parent directory of the running script?
Accepted Answer
More Answers (1)
Simpler and more efficient with a relative pathname using the dotdot-folder name to access the parent folder:
load('../mymatfile.mat')
Categories
Find more on Search Path in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!