Retrieve data from several structures and re-organize a new structure
조회 수: 3 (최근 30일)
이전 댓글 표시
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
GT
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 Exchange에서 Engines & Motors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!