代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
6_26.cpp
#include
using namespace std;
int main()
{ int i=10,j=20;
const int* pi=&i; //指向常量的指针
//*pi=20; //错误1:不能通过pi改变所指向变量的值
cout
fir.c
#include
#define FIRNUMBER 25
#define SIGNAL1F 1000
#define SIGNAL2F 4500
#define SAMPLEF 10000
#define PI 3.1415926
float InputWave();
float FIR();
float fHn[FIRNUMBER]={ 0.0,0
fir.c
#include"math.h"
#define FIRNUMBER 25
#define SIGNAL1F 1000
#define SIGNAL2F 4500
#define SAMPLEF 10000
#define PI 3.1415926
float InputWave();
float FIR();
float fHn[FIRNUMBER]={ 0.0,0
iir.c
#include"math.h"
#define IIRNUMBER 2
#define SIGNAL1F 1000
#define SIGNAL2F 4500
#define SAMPLEF 10000
#define PI 3.1415926
float InputWave();
float IIR();
float fBn[IIRNUMBER]={ 0.0,
samp7_6.m
%Samp7_6
wp=[0.35 0.65];N=48; %通带边界频率(归一化频率)和滤波器阶数
Fs=50;
b=fir1(N,wp); %设计FIR带通滤波器
figure(1)
[H,f]=freqz(b,1,512,Fs); %以50Hz为采样频率求出滤波器频率响应
subplot(2,1,1),plot(f,20*log10(abs
samp7_5.m
%Samp7_5
wp=0.5*pi;ws=0.66*pi; %滤波器的边界频率
wdelta=ws-wp; %过渡带宽度
N=ceil(8* pi/wdelta);%求解滤波器的最小阶数,根据Hanning 窗主瓣宽
Wn=(0.5+0.66)*pi/2;%截止频率取通带和阻带边界频率的中点
b=fir1(N,Wn/pi,hanning(N+1));%
shili05.m
function shili05
h0=figure('toolbar','none',...
'position',[200 150 450 250],...
'name','实例05');
t=0:pi/10:2*pi;
[x,y]=meshgrid(t);
subplot(2,2,1)
plot(sin(t),cos(t))
axis equal
sub
shili06.m
function shili06
h0=figure('toolbar','none',...
'position',[200 150 450 400],...
'name','实例06');
t=0:pi/10:2*pi;
h=plot(t,sin(t));
xlabel('t=0到2\pi','fontsize',16);
ylabel('sin(t)','fon
al8_1.c
/*案例代码文件名:AL8_1.C*/
#define PI 3.1415926 /*PI是宏名,3.1415926用来替换宏名的常数*/
main()
{float radius,length,area,volume;
printf("Input a radius: ");
scanf("%f",&radius);
length=2*PI*radius;
haimian.rar.txt
clear
L=100;
xmin=-L;
xmax=L;
n=90;
m=6;
ne=2*(n-2-1)*(m-1)+2*(m-1);
a=zeros(m*(n-2)+2);
b=zeros(m*(n-2)+2);
xy=zeros(m*(n-2)+2,2);
x=zeros(1,m*(n-2)+2);
y=zeros(1,m*(n-2)+2);
x(1)=xmin;