Matlab throws an error if you try to combine two dissimilar structures. This helper will merge N number of structures with different fields into a Nx1 structure with all fields from all of the structures.
Paul Shoemaker (2020). mergeStructs (https://www.mathworks.com/matlabcentral/fileexchange/73502-mergestructs), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!