fn_enlarge

Contents

Syntax

data=fn_enlarge(data,fact)
data=fn_enlarge(data,size[,outsideval])
data=fn_enlarge(data,fact,size[,outsideval])

Description

Enlarge data by factor 'fact' or so as to fit new size 'size'.
Input:
- data        array
- fact        vector - by how much to enlarge in each dimension; if its
              length is less than the number of dimensions of data, only
              these first dimensions are affected; except if fact is a
              scalar: in such case it is applied to the first 2
              dimensions of data
- size        vector - new desired size for the data; if its length is
              less than the number of dimensions of data, only these
              first dimensions are affected
- outsideval  scalar or flag such as 'mean', 'min', 'max' - value to put
              in extra space in case that new size is not a perfect
              multiple of the original size [default: NaN]
Note that the function guesses whether to interpret its second argument
as 'fact' or 'size'. It chooses 'size' if all elements of the vector are
larger than the size of data in the corresponding dimensions.
See also fn_bin

Source

Thomas Deneux

Copyright 2012-2017