www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/AddFolderandItsSubfolderstoSearchPathExample.m
%% Add Folder and Its Subfolders to Search Path % Add |matlab/myfiles| and its subfolders to the search path. %% % Create the folder |matlab/myfiles| and call |genpath| inside of |addpath| % to add all subfolders of |matlab/myfiles| to the search path. mkdir('matlab/myfiles') addpath(genpath('matlab/myfiles'))