Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dumas-Lefebvre Élie
trex
Commits
404cbfd3
Commit
404cbfd3
authored
Nov 25, 2022
by
Dany Dumont
Browse files
Ajout de rename.m
parent
4e7f0cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/matlab/skin_drifters/rename.m
0 → 100644
View file @
404cbfd3
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment