CatStruct2

Version 1.0.0.0 (2,47 KB) von Hassan
Concatenates Structures (fields each depth are merged)
319 Downloads
Aktualisiert 31. Dez 2011

Lizenz anzeigen

FinalStruct = CatStruct2(S1,S2) concatenates the structures S1 and S2 into one structure FinalStruct.

The fieldnames at each depth will be compared. In case the field name is found in both structures, the second occurence will overwrite the value of the first.

CatStruct2(S1,S2,'sorted') will sort the fieldnames alphabetically after merging the two structures.

Thanks to Jos van der Geest for providing the source code of CATSTRUCT on
http://www.mathworks.com/matlabcentral/fileexchange/7842-catstruct/content/catstruct.m

Zitieren als

Hassan (2026). CatStruct2 (https://de.mathworks.com/matlabcentral/fileexchange/34401-catstruct2), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2007b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Structures finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0