代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
3(1)包络检波.m
t=0:0.001:1;
x1=sin(2*pi*5*t);
subplot(2,4,1);
plot(t,x1);
x2=sin(2*pi*8*t);
subplot(2,4,2);
plot(t,x2);
x=x1+x2;
subplot(2,4,3);%信号图
plot(t,x);
xl=fft(x);
subplot(2,4,4);%信号频谱
plot(abs(x
il3_8fun.m
% il3_8fun.m
function f=il3_8fun(x,p)
f=1/sqrt(2*pi)*exp((-(x-p).^2)/2).*log2(2./(1+exp(-2*x.*p)));
cm_f34.m
% script that generates the figure 3.4 of Carrier modulation chapter
snrindB=0:0.25:18;
for i=1:length(snrindB),
snr=10^(0.1*snrindB(i));
P2(i)=Qfunct(sqrt(2*snr));
P4(i)=2*Qfunct(sqrt(4*sn
out.dyd
(2,"include")
(2,"fstream")
(2,"include")
(2,"string")
(2,"using")
(2,"namespace")
(2,"std")
(5,";")
(2,"ifstream")
(2,"fin")
(5,"(")
(2,"alpha")
(2,"in")
(5,))
(5,";")
(2,"ofstream")
cc.txt
#include
#include
using namespace std;
ifstream fin("alpha.in");
ofstream fout("alpha.out");
bool finish, hash[256], used[27];
int n, stk[27];
string a, b, c;
st
代码4-11.txt
t = linspace(-2*pi,2*pi,10);
h = stem(t,cos(t),'fill','--');
set(get(h,'BaseLine'),'LineStyle',':')
set(h,'MarkerFaceColor','red')
代码4-1.txt
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
plot(x,y,'--rs','LineWidth',2,...
'MarkerEdgeColor','k',...
'MarkerFaceColor','g',...
'MarkerSiz
test5.txt
--------------- 图形1:
原点 是 (20, 200); -- 设置原点的偏移量
旋转角度 是 0; -- 不旋转
横纵比例 是 (40, 40); -- 设置横纵比例
令 t 自 0 至 2*pi+pi/50 步长 pi/50 绘制 (t, -sin(t)); -- 画T的轨迹
原点 是 (20, 240);
tcmcode.m
snr=10;
N=input('number'); %数据长度
Es=3;
g=[1 0 1;0 0 1]; %卷积码编码器两路的冲激响应
x=round(rand(1,N)); %产生信源
for i=1:N/2; %串并变换
x1(i)=x(2*i-1);
x2(i)=x(2*i);
end;
z=cnvc(g,x1,x2); %进行(3,2,3)卷积码编码
dm09301.m
% dm09301
% 周期方波信号频谱分析
function CTFS_SQ
% 绘制并观察周期方波信号频谱
% Nf:傅里叶级数展开的项数
% an:各次谐波余弦项系数
display('Please input the value of Nf ');
Nf = input('Nf = ');
an = zeros(Nf+1,1);
an(1) = 0;
fo