How to create a loop that runs a function on subfolders in a directory.

6 ビュー (過去 30 日間)
Alexander Hannides Rajapakse
Alexander Hannides Rajapakse 2018 年 5 月 16 日
回答済み: Sean de Wolski 2018 年 5 月 16 日
I have 153 folders each containing 16 .bmp images. I need to run through each folder, and apply a particular function that segments the image. Then I would like to save the corresponding segmented image in each corresponding folder. I'm new at Matlab and I'm finding this very difficult. Any help would be appreciated!
  1 件のコメント
Geoff Hayes
Geoff Hayes 2018 年 5 月 16 日
Alexander - what have you tried so far? Do you have the list of folders and can you read (from each folder) the list of files? Please see https://www.mathworks.com/matlabcentral/answers/215718-extracting-files-from-multiple-directories which may be helpful.

サインインしてコメントする。

回答 (1 件)

Sean de Wolski
Sean de Wolski 2018 年 5 月 16 日

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by