File Exchange

image thumbnail

Merge Structures

version 1.0.0.0 (1.46 KB) by Grant Lohsen
Merges two structures of equal sizes.

0 Downloads

Updated 15 Jun 2011

View License

A simple function to merge two structures as long as they are the same size.
Ex:
[test1(1:2,1:2).A] = deal(1,2,3,4)
[test2(1:2,1:2).B] = deal(5,6,7,8)
out = fJoinStructures(test1, test2)
out =
2x2 struct array with fields:
B
A

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux