Merge Structures

Recursively merges fields and subfiels of two structures.
505 download
Aggiornato 2 dic 2011

Visualizza la licenza

% 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 Linux
Categorie
Scopri di più su Structures in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0