fullfile
fullfile('C:','Applications','matlab','fun.m')
//得到:f =C:\Applications\matlab\fun.m
folder=‘train';
filepaths = dir(fullfile(folder,'*.bmp'));%列出该文件夹下所有.bmp格式的文件(其中包括文件的名字、日期、像素等)
fullfile('C:','Applications','matlab','fun.m')
//得到:f =C:\Applications\matlab\fun.m
folder=‘train';
filepaths = dir(fullfile(folder,'*.bmp'));%列出该文件夹下所有.bmp格式的文件(其中包括文件的名字、日期、像素等)