How to collate mutiple mat files based on their name?

1 view (last 30 days)
Tomaszzz
Tomaszzz on 18 Jan 2022
Hi all,
I have multiple folders with mutiple mat files which are structures with a table inside. Please see screenshot below of an exmaple folder and example mat file attached.
I want to:
Collate files ending with the same number (as in green below, these numbers may differ depending on a folder) into one mat file with a name ending with this speciif number (for example: Dot_DatSynced_ID001_001). This mat file should be a structure with tables named LShank, LThigh, Pelvis, RShank, RThigh.
Could you please help?

Answers (0)

Community Treasure Hunt

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

Start Hunting!