How to loop through files that I have added to path?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
cocopuffs
il 23 Lug 2014
Commentato: Azzi Abdelmalek
il 23 Lug 2014
Hi,
I have a folder that I added to matlab path. the folder contains 2400 .tif files - I need to loop through each image, do calculations on the image and then go to the next image to do same calculation. i am new to the matlab so I need the help. I will greatly appreciate the help. Thank you in advanced. Please help me.
thank you. cocopuffs
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 23 Lug 2014
pat='E:' % Your folder
fil=fullfile(pat,'*.tif')
d=dir(fil)
for k=1:numel(d)
filename=fullfile(pat,d(k).name)
% do
end
2 Commenti
Azzi Abdelmalek
il 23 Lug 2014
pat='your_folder'
fil=fullfile(pat,'image*.tif')
d=dir(fil)
for k=1:numel(d)
filename=fullfile(pat,d(k).name)
% do
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!