필터 지우기
필터 지우기

How to move multiple images into a newly created folder?

조회 수: 5 (최근 30일)
Bryant
Bryant 2014년 7월 3일
댓글: Bryant 2014년 7월 3일
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.

채택된 답변

Image Analyst
Image Analyst 2014년 7월 3일
Also use the function movefile() or copyfile() inside the loop.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by