How to merge multiple structure with same name into one structure?

2 ビュー (過去 30 日間)
Yuqing
Yuqing 2013 年 12 月 28 日
回答済み: per isakson 2013 年 12 月 28 日
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 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 28 日
Can you explain what should be the result?

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

回答 (1 件)

per isakson
per isakson 2013 年 12 月 28 日
Search the File Exchange for merge structure

カテゴリ

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