selecting images from numerous subject subfolders

1 visualizzazione (ultimi 30 giorni)
SC
SC il 8 Nov 2019
Risposto: Pujitha Narra il 11 Nov 2019
Files for each subject are stored within individual subfolders (e.g. each subject has their own subfolder) and which also contain other subfolders. How can I extract the files of interest from each subject and store them in one directory? Also I'm only using a subset of subjects whose ID's are stored in a cell array.

Risposte (1)

Pujitha Narra
Pujitha Narra il 11 Nov 2019
Hi Sam,
There is a similar question which deals with accessing of files from different subfolders (with their names are in a cell array)
For making a copy of the files to another directory, you can use ‘copyfile’ function.
Usage:
copyfile source destination
You can go through the following for further details about the function:

Categorie

Scopri di più su File Operations 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!

Translated by