function P = appendParameter(P1, P2, Name)
% Performs block-diagonal concatenation of parameter objects.
% Off-diagonal values are fixed at 0.

%   Author(s): Rajiv Singh
%   Copyright 2010 The MathWorks, Inc.

s1 = getSize(P1);
s2 = getSize(P2);
Zero12 = param.Continuous(zeros(s1(1),s2(2)));
Zero12.Free = false;
Zero21 = param.Continuous(zeros(s2(1),s1(2)));
Zero21.Free = false;
P = catParameter(1,catParameter(2,P1,Zero12),catParameter(2,Zero21,P2),Name);
