If the input X is a
vector, the output is an L-element vector consisting of each
sample in X repeated nsamp times, where
L is length(X)*nsamp.
If the input X is a matrix, the function processes each
column as an independent channel and the output is an
L-by-M matrix, where L
is size(X,1)*nsamp and M is
size(X,2).