matlab resample 函数报错:Error using ==> upfirdn

报错:

Error using ==> upfirdn at 82
The product of the downsample factor Q and the upsample factor P must be less than 2^31.

原因是resample的两个参数太过接近,比如(44199,44100).

b=resample(a,44199,44100);

解决方法是因式分解,多次调用resample函数。

比如44100=25*36*49
那么我们可以写成如下:

b=resample(a,44199,25);
c=resample(b,1,36);
d=resample(c,1,49);
相关推荐
©️2020 CSDN 皮肤主题: Age of Ai 设计师:meimeiellie 返回首页