DupVect:

Path: Math/Linear

% Duplicate vector n times
 Create a matrix with n rows or columns each of which equals the row or column
 vector x. When duplicating a scalar note that For example,

   DupVect(3,5) = [3 3 3 3 3]'

--------------------------------------------------------------------------
   Form:
   y = DupVect( x, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x                  Vector to be duplicated

   -------
   Outputs
   -------
   y                  Matrix with n rows or n columns of x

--------------------------------------------------------------------------

Back to the Math Module page