Copy matrix or cell array
Syntax
nncopy(X,M,N)
Description
nncopy(X,M,N) takes two arguments,
X - R
C
M - Number of vertical copies.
M -
N - Number of horizontal copies.
N -
and returns a new (R*M) x (C*N) matrix (or cell array).
R*M
C*N
Examples
x1 = [1 2 3; 4 5 6]; y1 = nncopy(x1,3,2) x2 = {[1 2]; [3; 4; 5]} y2 = nncopy(x2,2,3)