Data folder should never be added to the search path. It's dangerous (you may change what functions are in scope) and there's no need to anyway.
All matlab IO functions accept full paths of data file for import/export. It's much better to specify the full path of files. That way they can be anywhere you want, even on a network folder.
So, instead of something like:
data = csvread('mydatafile.txt');
use
folder = 'C:\somewhere\somefolder';
data = csvread(fullfile(folder, 'mydatafile.txt'));
Best Answer