Given X with sampling rate Ft Hz and is used to generate another sequence Y with sampling rate Ft' Hz, then Sampling Rate ratio R is given by,
R = ----
if R > 1, sampling process is known as interpolation
R < 1, sampling process is known as decimation
t = 1:1/10:2;
X = sin (2 * pi * 10 * t) % 10 Hz sine wave
N = 3 % Interpolation/Decimation factor
Y = sample (X, N, 'UP')
Vallabha Hampiholi (2021). Sampling Rate Conversion (Interpolation/Decimation) (https://www.mathworks.com/matlabcentral/fileexchange/35853-sampling-rate-conversion-interpolation-decimation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!