This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C5416如何产生hamming窗?



你好,

我在C语言编写的程序当中定义了浮点的数组hamming[ ], 并且对它进行数组初始化。之前的几个数据还是正确的,可是后面却出错了。

以下附上程序片段和图片:

 	float hamming[WLEN];
        int i, j;

        for (i = 0; i < WLEN; i++)
        hamming[i] = 0.54 - 0.46*cos(2*3.14*i/(WLEN-1));
 

hamming[74]之前的数据都是正确的,74,75俊异常,75以后的则都是同一个数据,也是不对的。

请问哪儿出错了?以及关于在5416DSP中实现浮点算法的文档和资料我该参考哪些?

谢谢!