MATLAB 函数之resample

resample
Change sampling rate by rational factorexpand all in pageSyntax

用有理因子改变采样率
y = resample(x,p,q)
y = resample(x,p,q,n)
y = resample(x,p,q,n,beta)
y = resample(x,p,q,b)
[y,b] = resample(x,p,q)
Description

描述
y = resample(x,p,q) resamples the sequence in vector x at p/q times the original sampling rate, using a polyphase filter implementation. p and q must be positive integers. The length of y is equal to ceil(length(x)*p/q). If x is a matrix, resample works down the columns of x.

y = resample(x,p,q)   使用多相滤波器实现对矢量X中的序列在原始采样率的P/Q倍上重新采样。p和q必须是正数。y的长度等于ceil(length(x)*p/q).如果x是矩阵,重采样作用于x的列
resample applies an anti-aliasing (lowpass) FIR filter to x during the resampling process. It designs the filter using firls with a Kaiser window.

重采样将FIR滤波器应用于重采样过程中的X。使用Kaiser窗口设计滤波器。
y = resample(x,p,q,n) uses n terms on either side of the current sample, x(k), to perform the resampling. The length of the FIR filter resample uses is proportional to n; larger values of n provide better accuracy at the expense of more computation time. The default for n is 10. If you let n = 0, resample performs a nearest-neighbor interpolation
y(k) = x(round((k-1)*q/p)+1)
where y(k) = 0 if the index to x is greater than length(x).
y = resample(x,p,q,n,beta) uses beta as the design parameter for the Kaiser window that resample employs in designing the lowpass filter. The default for beta is 5.
y = resample(x,p,q,b) filters x using the vector of filter coefficients b.
[y,b] = resample(x,p,q) returns the vector b, which contains the coefficients of the filter applied to x during the resampling process.

返回向量B,其中包含在重采样过程中应用到x的滤波器的系数。

实例:

Y = resample(X,100000,8000);

内插实现增采样,100000/8000 = 25,提高25倍 

  • 11
    点赞
  • 34
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值