Loading multiple mat files with the same name from folder source
Ältere Kommentare anzeigen
I would like to be able to load a mat file named 'Synergy' from a folder path, in this folder path there are multiple participants (which can vary) which have been separated into their participant number but all contain the 'Synergy.mat' file
For example the top folder path is : N:\Gait\Research\Current Projects\CP Hemi Synergy Analysis\Data test participants
participant 1's data is located here : N:\Gait\Research\Current Projects\CP Hemi Synergy Analysis\Data test participants\CP_Syn01
Similarly, Participant 2 here: N:\Gait\Research\Current Projects\CP Hemi Synergy Analysis\Data test participants\CP_Syn02
I would like this automated to call in the Synergy mat file for any number of participants located in this folder.
Please help
Akzeptierte Antwort
Weitere Antworten (1)
Greg
am 15 Jan. 2018
The (relatively) new recursive dir is amazing.
mats = dir('N:\Gait\Research\Current Projects\CP Hemi Synergy Analysis\Data test participants\**\Synergy.mat');
5 Kommentare
Denni Purcell
am 15 Jan. 2018
Greg
am 15 Jan. 2018
What release of MATLAB are you running?
Denni Purcell
am 15 Jan. 2018
per isakson
am 15 Jan. 2018
Kategorien
Mehr zu File Operations 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!