Sounds like a simple problem, but to solve it, you have to provide more information. You have a lot of subfolders, and each subfolder contains one or more images, and you want to read all those images. Is that correct?
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/132334-run-a-code-for-subfolders#comment_217764
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/132334-run-a-code-for-subfolders#comment_217764
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/132334-run-a-code-for-subfolders#comment_217828
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/132334-run-a-code-for-subfolders#comment_217828
Sign in to comment.