fullfile();
利用文件各部分信息创建[1]合成完整文件名。
用法:
fullfile('dir1',
'dir2', ..., 'filename')
f = fullfile('dir1',
'dir2', ..., 'filename')
解释:若文件'100.hea'
的路径为'D:\matalab\xindianshuju\wenjian\100.hea',那么
'dir1'='D:';'dir2'='matlab';'dir3'='wenjian';‘dir4'='xindianshuju';'filename'='100.hea'
genpath();
P = genpath(D) returns
a path string starting in D, plus, recursively, all the
subdirectories of D, including empty subdirectories.
addpath();
addpath DIRNAME
prepends the specified directory to the
current matlabpath. Surround the DIRNAME in quotes if the name contains
a space. If
DIRNAME is a set of multiple directories separated by
path separators, then each of the
specified directories will be added.