How to combine structures with the same name fields?
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rbme17
am 21 Sep. 2018
Kommentiert: rbme17
am 21 Sep. 2018
I've tried looking at other threads on here to see if they applied to me but I couldn't find any. I have several structures, all with the same name fields (two of five shown below).
I wanted to combine these structures of different sizes to make one bigger structure, with the same name fields, so I can later import the single structure into excel. How can I accomplish this?
_
xswn =
26×1 struct array with fields:
name
folder
date
bytes
isdir
datenum
xsw_ =
41×1 struct array with fields:
name
folder
date
bytes
isdir
datenum
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 21 Sep. 2018
Did you try
New=[xswn; xsw_]
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!