⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 DSP培训 作业【源码】
💻 C
字号:
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "fft16.h"
#include "math.h"

float  result[257]; 
struct  compx s[257];   
int   Num=256;
const float pp=3.14159;

main()
{
	int i=1;
	for(;i<0x101;i++)
	{ 
		s[i].real=sin(pp*i/32);
		s[i].imag=0;
	}
	
	FFT(s,Num);

	for(i=1;i<0x101;i++)
	{
		result[i]=sqrt(pow(s[i].real,2)+pow(s[i].imag,2));
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -