Sampling Rate Conversion (Interpolation/Deci​mation)

The program does interpolation or decimation on a given 1-d data in an array.
732 téléchargements
Mise à jour 26 mars 2012

Afficher la licence

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,

Ft'
R = ----
Ft

if R > 1, sampling process is known as interpolation
R < 1, sampling process is known as decimation

Example Usage:
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')

Citation pour cette source

Vallabha Hampiholi (2024). Sampling Rate Conversion (Interpolation/Decimation) (https://www.mathworks.com/matlabcentral/fileexchange/35853-sampling-rate-conversion-interpolation-decimation), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Multirate Signal Processing dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0