MATLAB: Create struct with nx1 dimension

MATLABstruct

Hi !
I am looking for a way to create an empty struct with the dimensions 2×1.
So far i only know the comment
StructName = struct
which creates a struct with the dimensions 1×1
Thank you very much in advance!
Marc

Best Answer

StructName = struct('FieldName1',cell(2,1),'FieldName2',cell(2,1));
% or
StructName = struct('FieldName1',[],'FieldName2',[]);
StructName = repmat(StructName,2,1);