代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
hrollcoef.m
function [xh]=hrollcoef(irfn,ipoint,sr,alfs,ncc)
xi=zeros(1,irfn*ipoint+1);
xq=zeros(1,irfn*ipoint+1);
point=ipoint;
tr=sr;
tstp=1.0./tr./ipoint;
n=ipoint.*irfn;
mid=(n./2)+1;
sub1=4.0.*alfs
program_01_01.m
% 生成三个正弦函数并计算其幅度谱
N=120; % 采样点数
fs=400; % 采样频率
n=1:N; % 离散时间
% 三个正弦函数和
x1=sin(2*pi*50*n/fs);x2=sin(2*pi*100*n/fs);x3=sin(2*pi*150*n/fs);x=x1+x2+x3;
% 时域波形显示
figure(1);plot(n/fs,x);xlabe
exp2_3_.m
%plot绘图命令的使用
close all %关闭打开了的所有图形窗口
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:8*pi];
y=sin(t);
plot(t,y,'b:square')
% r表示线的颜色为红色,此外 y(黄色)g(绿色)b(蓝色)
%
exp2_5_.m
%图形文字标示命令的使用
clear
close all
clc
t=[0:pi/20:5*pi];
plot(t,sin(t),'r:*')
axis([0 5*pi -1.5 1.5 ])
%给x轴和y轴命名
xlabel('t(deg)')
ylabel('magnitude')
%给图形加标题
title('sine wave from zero to 5\pi')
exp2_3.m
%plot绘图命令的使用
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:9*pi];
y1=sin(t);
y2=cos(t);
plot(t,y1,t,y2)
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
ch04.04.c
// #include
// #include
#include
#include
#include
/*****
pi: 4 *pi: 4
st1: 12 st2: 12 ps: 4 *ps: 12
short : 2
short* : 4
qpsk.m
function QPSK
K=randint(1,240);
data=phaseshift(K);
Iphase=cos(data);
Qphase=sin(data);
D=lvbo2(Iphase);
E=lvbo2(Qphase);
D0=D';
E0=E';
D1=reshape(D0,1,[]);
E1=reshape(E0,1,[]);
f=1800;
t=
butterwarth filter.m
wp = 0.2 * pi; % Panband frequency is rad
ws=0.3*pi; % Stopband frequency is rad
Rp = 1;
As = 15;
T = 1;
OmeagaP = (2/T)*tan(wp/2);
OmeagaS = (2/T)*tan(ws/2);
N = ceil((log10((10^(Rp/10)-1)/(10
part1a.m
clc;
close all;
echo off;
fd=100;
M=8;
N=4*M+2;
Ts=1e-4;
Ns=100;
t=[-5:Ts:5];
suma=0;
sumb=0;
for n=1:M+1
if n