MATLAB: How to conbine the array inside the structure

structure

For example,
1X10 Struct
Structure(1)=1X5 array
Structure(2)=1X10 array
Is there a way to combine it into 1X15 array?
THanks

Best Answer

struct1=struct('f1',num2cell(1:10))
struct2=struct('f2',num2cell(1:5))
new_struct=struct('new_f',num2cell([struct1.f1 struct2.f2 ]))