代码搜索:Raspberry Pi
找到约 10,000 项符合「Raspberry Pi」的源代码
代码结果 10,000
www.eeworm.com/read/350382/10745642
m 5-12.m
%例程5-12 利用特征向量法估计功率谱
% e.g.5-12.m for example5-12;
% to test function peig;
clf;
clear all;
% Generate the signal plus white noise and show
N=1024; % number of sampling dat
www.eeworm.com/read/350382/10746083
m 3-4.m
%例程3-4 产生锯齿波形
Fs=1000;
t=0:1/Fs:3;
x=sawtooth(2*pi*t);
y=sawtooth(2*pi*t,0.5);
z=sawtooth(2*pi*t,1);
subplot(3,1,1);
plot(t,x);
subplot(3,1,2);
plot(t,y);
subplot(3,1,3);
plo
www.eeworm.com/read/350382/10746089
m 3-12.m
%例程3-12 求解单位冲击响应的幅频
N=20;
a=[0.4 0.3 -1];
b=[1 -0.2 0.6 0.3];
x=[1 zeros(1,N-1)];
k=0:N-1;
y=filter(a,b,x);
Fs=1000;
w=0:pi/Fs:pi;
h=freqz(a,b,w);
subplot(2,1,1);
stem(k,y);
www.eeworm.com/read/350382/10746100
m 3-1.m
%例程3-1 计算序列抽样和与序列能量
t=(0:0.1:10)';
x=sin(2*pi*t)+2*cos(pi*t);
y=x+randn(size(t));
s=sum(x(1:100));
E=sum(abs(y).^2);
subplot(2,2,1);
plot(t,x);
title('X');
subplot(2,2,2);
plot(t,y);
ti
www.eeworm.com/read/350382/10746153
m 4-25.m
%例程4-25 基于频率抽样方法2实现Ⅲ型FIR数字带通滤波器
clear all;
N=41;
T1=0.1095;
alpha= (N-1)/2;
l=0:N-1;
wl= (2*pi/N)*l;
Hrs=[zeros(1,6),T1,ones(1,7),T1,zeros(1,11),T1,ones(1,7),T1,zeros(1,6)];
www.eeworm.com/read/350382/10746202
m 4-24.m
%例程4-24 基于频率抽样方法1实现Ⅰ型FIR数字高通滤波器
clear all;
N=61;
T1=0.1095;
T2=0.598;
alpha= (N-1)/2;
l=0:N-1;
wl= (2*pi/N)*l;
Hrs=[zeros(1,22),T1,T2,ones(1,14),T2,T1,zeros(1,21)]; %理想振幅采样响应
Hdr
www.eeworm.com/read/350382/10746217
m 4-1.m
%例程4-1 利用冲激响应不变法设计数字低通滤波器
%利用模拟巴特沃斯滤波器设计数字低通滤波器
%冲激响应不变法
wp=0.2*pi;
ws=0.3*pi;
Rp=1;
As=15;
T=1;
%性能指标
Rip=10^(-Rp/20);
Atn=10^(-As/20);
OmgP=wp*T;
OmgS=ws*T;
[N,OmgC]=buttord(OmgP,Omg
www.eeworm.com/read/276309/10749436
c 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));
}
www.eeworm.com/read/350121/10771836
cpp new.cpp
#include
void main()
{
int* pi;
pi = new int; // 动态分配内存
*pi = 555;
cout
www.eeworm.com/read/420699/10780177
m drawsatelliteorbit.m
function DrawSatelliteOribt
a=26560;
e=0.02;
E=[0:0.1:2*pi];
x=a*(cos(E)-e);
y=a*sqrt((1-e^2))*sin(E);
z=0*E;
DotR=2*pi/360;
A1=[32.8 92.8 152.8 212.6 272.8 332.8];
for k=1:6
A=A1(k)*Dot