フィルターのクリア

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.
  1 件のコメント
Bryant
Bryant 2014 年 7 月 3 日
Thanks again, Image Analyst!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by