VREP Replicates an array along a specified dimension. Y=VREP(X,N,DIM) replicates the array by N times along dimension dimension DIM. For instance: VREP([1:4]',3,2)=[ [1:4]' [1:4]' [1:4]' ] This is often useful in array algebra. IF N and DIM are arrays of length M, then X is replicated along each of the M different dimensions: N(1) times along dimensions DIM(1), etc. [Y1,Y2,...,YP]=VREP(X1,X2,...,XP,N,DIM) also works. See also VINDEX, DIM. __________________________________________________________________ This is part of JLAB --- type 'help jlab' for more information (C) 2001--2018 J.M. Lilly --- type 'help jlab_license' for details