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

1 回表示 (過去 30 日間)
Isma_gp
Isma_gp 2019 年 1 月 8 日
コメント済み: Gareth 2019 年 1 月 9 日
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
  2 件のコメント
Gareth
Gareth 2019 年 1 月 9 日
Isma_gp Let us know if you are still having difficulties:) If yes, feel free to share your code, and it will make it easier for the community to jump in.

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by