代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
13kfft0.c
#include "stdio.h"
#include "13kfft.c"
#include "math.h"
main()
{ int i,j;
double pr[64],pi[64],fr[64],fi[64];
for (i=0; i
tableq15.h
#ifndef TABLEQ15_H
#define TABLEQ15_H
// ================================================================
// define lookup table in Q1.15 format
//
//
// OneOverSqrt3Q1_15=1/sqrt(3)
//
// SinV
cirpro.cpp
// cirPro.cpp: implementation of the cirPro class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "projection.h"
#include "cirPro.h"
#in
untitled3.m
[y,fs,bits]=wavread('b.wav');
wp=0.1*pi;
ws=0.3*pi;
Rp=30;
Rs=120;
Fs=fs;
Ts=1/Fs;
wp1=2/Ts*tan(wp/2); %将模拟指标转换成数字指标
ws1=2/Ts*tan(ws/2);
[N,Wn]=buttord(wp1,ws1,Rp,Rs,'s');
wode4.m
wp=0.1*pi;ws=0.3*pi;Rp=30;Rs=120;%Fs=fs;Ts=1/Fs;
wp1=2*fs*tan(wp/2); %将模拟指标转换成数字指标
ws1=2*fs*tan(ws/2);
[N,Wn]=buttord(wp1,ws1,Rp,Rs,'s'); %选择滤波器的最小阶数
[Z,P,K]=buttap(N);
cuang.m
fs=22050;
x1=wavread('b.wav');
t=0:1/22050:(size(x1)-1)/22050;
Au=0.03;
d=[Au*cos(2*pi*5000*t)]';
x2=x1+d;
wp=0.25*pi;
ws=0.3*pi;
wdelta=ws-wp;
N=ceil(6.6*pi/wdelta); %取整
wn=(0.
untitled5.m
wp=0.1*pi;
ws=0.3*pi;
Rp=30;
Rs=120;
Fs=fs;
Ts=1/Fs;
wp1=2/Ts*tan(wp/2); %将模拟指标转换成数字指标
ws1=2/Ts*tan(ws/2);
[N,Wn]=buttord(wp1,ws1,Rp,Rs,'s'); %选择滤波器的最小阶数
[Z,P,K]=buttap
lmszl.m
%lms自适应波束形成
clear;clc;
u=0.01;
d=1/2; %阵元间距为0.5波长
N=16;
w0=2*pi*1;
n=1:1000;
x=sin(w0*n/N);
pn=0.5/100;
nos=randn(1,1000);
x=x+pn*nos; %加入噪声
dn=cos(w0*n/N);
thita=9
lcmv.m
%lcmv波束形成
clear;clc;
la=1;
d=la/2;
thita1=90;
thita2=100;
fid1=2*pi*d*sin((90-thita1)*2*pi/360)/la;
fid2=2*pi*d*sin((90-thita2)*2*pi/360)/la;
afid1=[1;exp(j*fid1);exp(j*2*fid1);exp(j*3*fid1);e
app7_7.java
// app7_7, 调用method并传递参数
class CCircle // 定义类CCircle
{
double pi=3.14; // 将数据成员赋值初值