Retrieve data from several structures and re-organize a new structure

3 views (last 30 days)
Hi,
I have several folders "folder_1, folder_2....folder_n" with a structure "moo_data.m" on each folder.
Each "moo_data.m" contains several structures "file_1, file_2....file_m". The number of structures on each "moo_data" can be different. On each "file_m" structure there is a 24x20 double called response. i.e. moo_data.file_1.response gives us a [24x20] double.
I need to re-organize the data as follows:
for ii=1:24
the data within response (ii,:) needs to be regrouped for each of the "file_m" structures to end up with a new double of size m x 20. The new structure would look like:
newstructure.folder_3.line_24.response , which results on a [mx20] double. "new_structure" would have n "folder_n" structures and each one 24 "line_y" structures containing a [mx20] double each.
Can I get some help reorganizing this data into athe new structure?
Thanks

Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!