Merge Structures
Versione 1.0.0.0 (1,31 KB) da
Igor Kaufman
Recursively merges fields and subfiels of two structures.
% Simple recursive algorithm merges fields and subfields of two structures
% Example:
% A.field1=1;
% A.field2.subfield1=1;
% A.field2.subfield2=2;
%
% B.field1=1;
% B.field2.subfield1=10;
% B.field2.subfield3=30;
% B.field3.subfield1=1;
%
% C=mergestruct(A,B);
%
Cita come
Igor Kaufman (2025). Merge Structures (https://it.mathworks.com/matlabcentral/fileexchange/34054-merge-structures), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2010b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Structures in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
