Commit 404cbfd3 authored by Dany Dumont's avatar Dany Dumont
Browse files

Ajout de rename.m

parent 4e7f0cd7
function rename(flightstr)
rootdir = ['/Volumes/LABO_DANY-D-TREX/Archives/TReX_2020/20200911/skin_drifters/'];
bwdir = [rootdir,'flight_',flightstr,'/bw/'];
infiles = dir([bwdir,'*.jpg']);
nFiles = size(infiles,1);
for n =1:nFiles
infile = [bwdir,infiles(n).name];
outfile = [infile(1:end-11),'_bw.jpg'];
disp(infile)
disp(outfile)
command = ['mv ',infile,' ',outfile];
system(command);
end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment