使用fmmod进行FM调制时出现无法解释的“内存不足”错误

问题描述

我试图获取输入信号并对其进行八度的FM调制。

这给了我一个无法解释的“内存不足”错误。 据我所知,我的输入文件不是太大,所以我不知道为什么会收到此错误

请参阅下面的我的试用代码(带行号):

 1  pkg load communications
 2
 3  [sound1,fs] = audioread( 'sound1.wav' );
 4
 5  fc     = fs / 2;
 6  devreq = 100;
 7  dt     = 1 / fs;
 8  len    = length( sound1 ) * dt;
 9
10  y = fmmod( sound1,fc,fs,devreq );
11
12  plot( abs( y ) )

我收到的错误

error: out of memory or dimension too large for Octave's index type
error: called from
    fmmod at line 32 column 5
    Q2 at line 10 column 2

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)