www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/AddFoldertoTopofSearchPathExample.m

    %% Add Folder to Top of Search Path  
% Create a folder, add it to the top of your search path, and then save
% the search path for future MATLAB(R) sessions. 
mkdir('matlab/myfiles')   
addpath('matlab/myfiles')  
savepath matlab/myfiles/pathdef.m