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.

c6657复数运算问题



for (Ci4 =0;Ci4<=299;Ci4++)
{
        for(i=0;i<=49;i++)
            {
            DataPn50temp[i] = CDataSample_rx[Ci4+i*4];
            rtemp[Ci4]+=conj(pn50[i]*DataPn50temp[i]);
            }
}

其中pn50[50]和CDataSample_rx[5066]是初始化好了的double complex型数组

我有两个问题:

1.运行结果中,DataPn50temp[0]总是出错。下图是CCS的结果和MATLAB结果的对比

2.复数乘法能直接用*吗,还是需要自己编写算法