MATLAB: Where does “load” look for files

load

Recently I have observed that load('myfile.mat') seems to find and load "myfile.mat" even if it does not exist in the current folder but does exist elsewhere on the matlab path. I don't see this behavior documented in the help for the load function. Is there an argument to the function call that would force it to only look locally to the current folder?
Specifically, I'd like it to behave like this:
curfolder=pwd; full_file_name=fullfile(curfolder,'myfile.mat'); load(full_file_name);
But this workaround reduces code readability.
I'm also curious to know if this is a recent change to the load function or if it has always been this way. I'm running R2016b at the moment.

Best Answer

What about using this syntax.
load('./myfile.mat')
Related Question