Signal Toolkit - upsamplefill


Function File: y = upsamplefill (x, v)
Function File: y = upsamplefill (…, copy)

Upsamples a vector interleaving given values or copies of the vector elements.

The values in the vector v are placed between the elements of x.

If the optional argument copy is true then v should be a scalar and each value in x are repeat v times.

Example:

 
 upsamplefill (eye (2), 2, true)
 ⇒  1   0
     1   0
     1   0
     0   1
     0   1
     0   1
 upsamplefill (eye (2), [-1 -1 -1])
 ⇒  1   0
    -1  -1
    -1  -1
    -1  -1
     0   1
    -1  -1
    -1  -1
    -1  -1
 
 

See also: upsample.