Process all file in a folder by function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, i write a function which process a image file : main(filename) where "filename" indicates the image to be process. I would like to process all the images in the folder "tot16", i would use this function <http://www.mathworks.com/matlabcentral/fileexchange/25316-auto-process-all-files-in-sub-folders&watching=25316> but not working. I write the function call :
PathRunner('/Users/XXXX/Documents/MATLAB/Thesis' , '/tot16' ,@main , flag , '*.raw' )
where :
- /Users/XXXX/Documents/MATLAB/Thesis is the directory where is the function @main
- /tot16 is the directory which contain all image files
2 Kommentare
Akzeptierte Antwort
Walter Roberson
am 11 Mai 2012
The file type parameter must be given to the function as a cell array of strings, even when you are only passing in a single file type string.
{'*.raw'}
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!