adding to a Directory
2 views (last 30 days)
Show older comments
Hi. I'm trying to add a few pgm images to a matlab directory called posData. How is this done?
Answers (2)
Azzi Abdelmalek
on 5 Mar 2013
Edited: Azzi Abdelmalek
on 5 Mar 2013
f=dir('yourfolder/*.pgm')
files={f.name'}
for k=1:numel(files)
copyfile(['yourfolder/' files{k}],['NewFolder/' files{k}])
end
You can also use movefile
0 Comments
See Also
Categories
Find more on File Operations 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!