powered by
Upsample a signal by an integer factor.
upsample(x, n, phase = 0)
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.
upsampling factor, specified as a positive integer. The signal is upsampled by inserting n - 1 zeros between samples.
n - 1
offset, specified as a positive integer from 0 to n - 1. Default: 0.
0
Upsampled signal, returned as a vector or matrix.
downsample, interp, decimate, resample
downsample
interp
decimate
resample
# NOT RUN { 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) # }
Run the code above in your browser using DataLab