hi.. does anyone can help me with this code, please ? it's created by Jiro Doke. it were run but i didn't get the name file as i want. i wanted to change those file's number into only 1,2,3,4,5,and so on.. FYI, i've tried to change the folder name like this..
files = dir(fullfile('C:\Users\ASUS\Desktop\2','*.tif'));
for id = 1:length(files)
[~, f] = fileparts(files(id).name);
num = str2double(f);
APath = fullfile('C:\Users\ASUS\Desktop\2', files(id).name);
movefile(APath, sprintf('%d.tif', num));
and the output files name were like this :
or if i want to change it like
continue directly to
and so on..
what should i do, please ?
thank you so much.