matlab 函数

fullfile

fullfile('C:','Applications','matlab','fun.m')
//得到:f =C:\Applications\matlab\fun.m

folder=‘train';
filepaths = dir(fullfile(folder,'*.bmp'));%列出该文件夹下所有.bmp格式的文件(其中包括文件的名字、日期、像素等)

猜你喜欢

转载自blog.csdn.net/san_junipero/article/details/79915267