求问关于dir函数读取bmp图片名称的问题。
Show older comments
dirs = dir('E:\matlab\bin\b895d485\test1_images'); % 设定根目录,并读取根目录下的文件夹
l = length(dirs)-2;
for i=3:l+2
path=strcat('samples/ ',dirs(i).name, '/');% 生成当前目录下的路径
files = dir(strcat(path,'*.bmp')); % 获取第i个路径下所有文件名称
end
files无法读取到数据 到底时什么原因呢
Accepted Answer
More Answers (0)
Categories
Find more on 文件操作 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!