Azzera filtri
Azzera filtri

How to move multiple images into a newly created folder?

5 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Image Analyst
Image Analyst il 3 Lug 2014
Also use the function movefile() or copyfile() inside the loop.

Più risposte (0)

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by