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.

Iqmath函数应用



我想计算Ton=T*(1+M*sin(2Pi*k/N)),因为用到sin函数,所以我采用IQ_sin,并采样标幺法,(M为系数0~1,T对应的_IQ(1),k为采样点为0~N),实现的程序如下:

ton1=_IQ(1)+ _IQmpy(_IQ(M),_IQsin(_IQ(2*Pi*k/N));
Ton=_IQtoF(ton1*T);

我知道_IQsin函数也是查表,最多有512个点,但程序运行后Ton的数值只有三个,_IQ为IQ15,是不是IQ15取得不对导致_IQ(2*Pi*k/N)计算不对?