How to move multiple images into a newly created folder?
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a question. If you wanted to create a directory with the current date and time and you needed to move multiple jpg files from any source location? I tried and below I just put random script ideas that I thought would be useful.
str=sprintf('%d-',fix(clock));
filenamev1 = str(1:end-4);
picfolder = mkdir(filenamev1);
selectedfiles = uigetfile('.jpg', 'Select the LFA strip pictures you wish to analyze.', 'Multiselect', 'on');
movefile(selectfiles,pwd\picfolder);
%I think I just need to find out the path name for the folder i created.
0 个评论
采纳的回答
Image Analyst
2014-7-3
See the FAQ for code examples http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
Also use the function movefile() or copyfile() inside the loop.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!