function C=insrows(A,n,B);
%INSROWS inserts more rows in A at row n.  The rows inserted are in B.
%
%  INPUTS: A (lxp), n <= l, B (mxp)
%
%  OUTPUT: C (l+m xp) equal to A with B inserted at row n.
%
[l,p]=size(A);
[m,col]=size(B);
if p~=col; error('A and B must have same number of columns'); end;
if n>l+1;  error('Invalid location for row(s) specified.'); end;
C=[A(1:n-1,:);B;A(n:RA,:)];
