Increase sample rate
Upsample a signal by an integer factor.
upsample(x, n, phase = 0)
x |
input data, specified as a numeric vector or matrix. In case of a vector it represents a single signal; in case of a matrix each column is a signal. |
n |
upsampling factor, specified as a positive integer. The signal is
upsampled by inserting |
phase |
offset, specified as a positive integer from |
Upsampled signal, returned as a vector or matrix.
Paul Kienzle, pkienzle@users.sf.net.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
x <- seq_len(4) u <- upsample(x, 3) u <- upsample(x, 3, 2) x <- matrix(seq_len(6), 3, byrow = TRUE) u <- upsample(x, 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.