% -*- texinfo -*- % @deftypefn {Function File} {} prepad (@var{x}, @var{l}, @var{c}) % @deftypefnx {Function File} {} prepad (@var{x}, @var{l}, @var{c}, @var{dim}) % Prepend (append) the scalar value @var{c} to the vector @var{x} % until it is of length @var{l}. If the third argument is not % supplied, a value of 0 is used. % % If @code{length (@var{x}) > @var{l}}, elements from the beginning (end) of % @var{x} are removed until a vector of length @var{l} is obtained. % % If @var{x} is a matrix, elements are prepended or removed from each row. % % If the optional @var{dim} argument is given, then operate along this % dimension. % @seealso{postpad} % @end deftypefn