title: Matlab addpath, genpath does not work in Mac?
body: <p>I have a folder named <code>'/Users/me/myfolder'</code>, which contains many subfolders. Each of these subfolders have .m or data files, whose names are unique. I did <code>addpath(genpath(userpath))</code>, and did <code>load('../data/filename')</code> and <code>load('filename')</code>, but I got errors: <code>No such file or directory</code>. How can I execute a file or load a file using <code>load('../data/filename')</code> or <code>load('filename')</code> regardless of which subfolder I am in? </p>