- Use slow cd
- Copy code/mfiles into data folders just so that they can be run on some data.
- Keep your code is one place, separate from your data.
- Use absolute/relative filenames.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!