How to merge multiple structure with same name into one structure?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have generated structures with same name'histStruct' and they are saved in different files. In each histStruct.mat file there are same numbers and names of fields. I want to combine all the structures into one structure.same field merges together. for examples: if I have two histStruct.mat files in two different files. one is in 'C:\Users\Administrator\Desktop\test'and the other is in 'C:\Users\Administrator\Desktop\test2' and I want to combine these two histStruct into one. the first histStruct has the content as following. histVel: [12441x1 double] median: 0.1499 mean: 0.1599 stdev: 0.0552 incidence: 18.5516 the second histStruct has the content as following histVel: [17736x1 double] median: 0.1676 mean: 0.1803 stdev: 0.0651 incidence: 28.1800 Actually, I wanted to combine histVel together from each histStruct. Can you help me? Thank you very much.
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!