Let's say I have two structures.
D = [strtrim(C{1}),num2cell(C{2})].'; F = struct(D{:}); % other code that creates C1
D1 = [strtrim(C1{1}),num2cell(C1{2})].'; \E = struct(D1{:});
I now want to create a larger structure out of F and E that has the same dimensions.
So , for dummy variables, let's say F looks like (but is not limited to):
A: apple
B: ball
and E looks like:
C: cat
D: dog
How do I combine these two into:
A: apple
B: ball
C: cat
D: dog
Thanks!
Best Answer