diff --git a/StructsFieldCat.m b/StructsFieldCat.m new file mode 100644 index 0000000000000000000000000000000000000000..69561b8d356fbd7683472e4bdace354bf9f50e34 --- /dev/null +++ b/StructsFieldCat.m @@ -0,0 +1,12 @@ +function [s] = StructsFieldCat(structs, dim) +%STRUCTSFIELDCAT Summary of this function goes here +% Detailed explanation goes here +if nargin<2 || isempty(dim) + dim=1; +end +s = structs(1); +for i = 2:length(structs) + s=StructFieldCat(s, structs(i), dim); +end +end +