代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
eyespic3.m
%升余弦滚降系统(2径)的眼图
clear all
close all
N=2^14; %采样点数
L=32; %每码元采样点数
M=N/L; %码元数
Rb=2; %码速率
Ts=1/Rb; %码元间隔
dt=Ts/L; %时域采样间隔
df=1/(N*dt); %频域采样间隔
d=16; %半个码元采样点数
T=N*dt; %截短时宽
Bs=N*
makepulse.m
function pulse = makepulse(varargin)
%MAKEPULSE Modulation impulse design.
% H = MAKEPULSE('PropertyName',PropertyValue,...) returns the impulse
% response of desired modulation impulse. All the
fir.c
#include "DSP281x_Device.h" // DSP281x Headerfile Include File
#include "DSP281x_Examples.h" // DSP281x Examples Include File
#include "f2812a.h"
#include"math.h"
#define FIRNUMBER 25
#de
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
ex3512.m
%例35-12:求方向导数。
syms x y z
f=x*y^2-x*y*z+z^3;
s=jacobian(f)
sx=subs(s,'x','1');
sy=subs(sx,'y','1');
sz=subs(sy,'z','2');
g=vpa(sz)
a=pi/3;
b=pi/3;
c=pi/3;
L=g*[cos(a),cos(b),cos(c)]'
ex3613.m
%例36-13 三维曲线绘图
t=0:2*pi;
x=cos(t).*sin(t);
y=2+t;
z=t.^2;
plot3(x,y,z)
ex2320.m
%例23-20 文本框标注
x=0:0.02*pi:2*pi;
y=sin(x)+cos(x);
plot(x,y,pi,sin(pi)+cos(pi),'o')
text(pi,sin(pi)+cos(pi),['sin(\pi)+cos(\pi)=',num2str(sin(pi)+cos(pi))])
gtext({'gtext1-line1','gtext1-line2'})
ex2305.m
%例23-5 曲线格式和标记点类型设置
x=0:0.1*pi:2*pi;
y3=sin(x).*cos(3*x);
y1=sin(x);
y2=cos(3*x);
plot(x,y1,'ob',x,y2,'--dc',x,y3,':vr') %第一组数据只标记数据点
ex2318.m
%例23-18 图例
x=0:0.02*pi:2*pi;
y1=sin(x);
y2=cos(x);
y3=sin(3*x).*cos(x);
plot(x,[y1;y2;y3])
axis([0 2*pi -1.5 1.5])
set(gca,'XTick',[0 pi 2*pi],'XTickLabel',{'0','pi','2pi'})
legend('sin(x)','c