How to run m-files automatically ?
Ältere Kommentare anzeigen
Hi,
I have collection of images to analyze using matlab. I made m-file code to analyze one image at a time, but it takes considerable time as there are hundreds of images to run.
Is there anyway to call the files in the folder and run one at a time automatically, without me designating the file name one by one?
Thank you very much for help.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 2 Sep. 2012
1 Stimme
3 Kommentare
Jan
am 2 Sep. 2012
And when you read this section of the FAQ, I suggest to read the rest also.
Jigar Gada
am 2 Sep. 2012
Bearbeitet: Jigar Gada
am 2 Sep. 2012
You could use the foll code
folder_cont = dir('C:\Users\*.jpg');
nsize = size((folder_cont),1);
for i = 1:nsize
str=strcat('C:\Users\',D(i).jpg);
im=imread(str);
%%do the processing of the image here
end
Taehyung
am 2 Sep. 2012
Kategorien
Mehr zu Images finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!