You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
RECUMERGESTRUCT recursively merges fields & subfields of structs A and B
The aim is to produce 1D arrays of every shared field in the structs, indexed by the struct identifier, which we assume is a point field somewhere at the top level. Scalars are aggregated to vectors, vectors are aggregated if of equal size, mxn matrices are placed in cell arrays, as are cells and char arrays.
Cite As
Ben (2026). RecuMergeStruct(A, B) (https://in.mathworks.com/matlabcentral/fileexchange/47448-recumergestruct-a-b), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (3.55 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
