Sampling Rate Conversion (Interpolation/Deci​mation)

The program does interpolation or decimation on a given 1-d data in an array.
732.0 次下载
更新时间 2012/3/26

查看许可证

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')

引用格式

Vallabha Hampiholi (2024). Sampling Rate Conversion (Interpolation/Decimation) (https://www.mathworks.com/matlabcentral/fileexchange/35853-sampling-rate-conversion-interpolation-decimation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0