代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
lvboqi.m
%用fdatool设计滤波器,生成一个.fda文件,不知道怎么导入数据,查找资料说的是用simulink的滤波器模块可以导入.fda生成的滤波器
%所以只用了程序来实现
c=48; %定义滤波器阶数
fc1=8400;fc2=13200;fs=48000;
w1=2*pi*fc1/fs;
w2=2*pi*fc2/fs;
ch04.04.c
// #include
// #include
#include
#include
#include
/*****
pi: 4 *pi: 4
st1: 12 st2: 12 ps: 4 *ps: 12
short : 2
short* : 4
main3_1b.cpp
// Section 7.3.1
// $ CC ptrswap.cpp main3_1b.cpp
/*
Before ptrswap(): pi: 10 pj: 20
After ptrswap(): pi: 20 pj: 10
*/
#include
using std::cout;
using std::en
show_tan.c
#include
#include
void main(void)
{
double pi = 3.14159265;
printf("Tangent of pi is %f\n", tan(pi));
printf("Tangent of pi/4 is %f\n", tan(pi / 4.0));
}
input.c
#include "stdio.h"
#include "conio.h"
#include "math.h"
#define PI 3.1415926
void main( void )
{
int n;
double x[256];
FILE *fp;
if((fp=fopen("input.txt","w"))==NULL) {
rayleighch.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%7/16/2008 ZHANGSONG
%RayleighCH.m
%根据论文《改进型JAKES模型在OFDM系统中的仿真》编写的信道模型
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function H=RayleighC
gngauss.asv
function[gsrv1,gsrv2]=gngauss(m,sgma)
if nargin==0,
m=0;sgma=1;
elseif nargin==1,
sgma=m;m=0;
end;
u=rand;
z=sgma*(sqrt(2*log(1/(1-u))));
u=rand;
gsrv1=m+z*cos(2*pi*u);
gsrv2=m+z*sin(2
gngauss.m
function[gsrv1,gsrv2]=gngauss(m,sgma)
if nargin==0,
m=0;sgma=1;
elseif nargin==1,
sgma=m;m=0;
end;
u=rand;
z=sgma*(sqrt(2*log(1/(1-u))));
u=rand;
gsrv1=m+z*cos(2*pi*u);
gsrv2=m+z*sin(2
exa060603.m
%----------------------------------------------------------------------------
% exa060603.m, for example 6.6.3;
% To design IIR Butteworth bandstop DF by analog-lowpass,
% -------------------------
exa011004_sinc.m
%-----------------------------------------------------------------
% exa011004_sinc.m, for example 1.10.4
% to generate the sinc function.
% 产生一 sinc 函数;
%-----------------------