代码搜索:脉冲信号
找到约 10,000 项符合「脉冲信号」的源代码
代码结果 10,000
www.eeworm.com/read/221223/14752903
m exam12_5.m
% 当前延拓模式是补零
% 载入信号
load noisdopp; x = noisdopp;
figure(1); subplot(211);
plot(x); title('原始信号');
% 利用db1小波包在第3层对x进行分解,使用Shannon熵
t = wpdec(x,3,'db1','shannon');
% 画出小波包树
plot(t)
% 重构小波包结点(2,
www.eeworm.com/read/221223/14752971
m 例程17-3.m
%生成正弦信号
N=1000;
t=1:N;
sig1=sin(0.3*t);
%生成三角波信号
sig2(1:500)=((1:500)-1)/500;
sig2(501:N)=(1000-(501:1000))/500;
figure(1);
subplot(2,1,1);plot(t,sig1,'LineWidth',2);xlabel('时间 t/s');ylabel('幅
www.eeworm.com/read/221223/14752977
m exam10_4.m
clc;
clear;
% 当前延拓模式是补零
% 装载一维原始信号
load sumsin; s = sumsin;
subplot(2,1,1);plot(s);
title('原始信号');
% 使用db1进行3层分解
[c,l] = wavedec(s,3,'db1');
subplot(2,1,2);plot(c);title('小波分解结构');
Xlabel('
www.eeworm.com/read/221223/14752990
m exam10_11.m
clc;
clear;
% 采用补零的扩展模式(参见dwtmode函数)
% 装载一维尺度信号
load leleccum; s = leleccum(1:3920);
ls=length(s);
subplot(2,1,1);plot(s);
title('原始信号');
% 使用db1小波在第3层进行分解
[c,l] = wavedec(s,3,'db1');
% 由小波
www.eeworm.com/read/221223/14753086
m examp13_7.m
clc;
clear;
% 装载bumps的噪声信号
load noisbump;
x = noisbump;
% 使用sym6执行5层小波分解
wname = 'sym6';
lev = 5;
[c,l] = wavedec(x,lev,wname);
% 由第1层的高频系数估计噪声标准差
sigma = wnoisest(c,l,1);
% 信号降噪时,采用调整参数选
www.eeworm.com/read/221223/14753116
m examp13_19.m
clc;
clear;
% 装载噪声chirp信号
load noischir; x = noischir;
% 使用sym6对信号进行5层小波包分解
wname = 'sym6'; lev = 5;
tree = wpdec(x,lev,wname);
% 由第1层高频系数估计噪声的标准差,结点索引号为2
det1 = wpcoef(tree,2);
sigma = media
www.eeworm.com/read/216263/15022219
m exa7_5.m
% exa070401_tfrpwv.m ,for example 7.4.1
% to test tfrpwv.m
clear;
t=0:0.001:1.024-.001;
N=1024;
% 得到两个Chirp 信号,并相加;
y1=chirp(t,0,1,350);
y2=chirp(t,350,1,0);
y=y1+y2;
% 求两个Chirp 信号和
www.eeworm.com/read/209876/15212351
txt wo.txt
使用信号量的生产者消费者问题代码描述
#define N 100 /* 缓冲区内槽数 */
typedef int semaphone; /* 信号量是一种特殊的整形变量 */
semaphone mutex =1; /* 控制对临界区的访问 */
semaphone empty=N; /* 记录缓冲区内空的槽数 */
semaphone ful
www.eeworm.com/read/207233/15279051
m f10_1.m
%生成正弦信号
N=1000;
t=1:N;
sig1=sin(0.3*t);
%生成三角波信号
sig2(1:500)=((1:500)-1)/500;
sig2(501:N)=(1000-(501:1000))/500;
figure(1);
subplot(2,1,1);
plot(t,sig1,'LineWidth',2);
xlabel('样本序号 n');
yla
www.eeworm.com/read/207227/15279121
m f3_23.m
%常数调频信号
fm1=fmconst(256,0.2);
%单边指数窗幅值调制信号
am1=amexpo1s(256,100);
%合成
sig=am1.*fm1;
%显示
%实部
plot(real(sig),'LineWidth',2);
hold on;
%虚部
plot(imag(sig),'ro--','LineWidth',2);
legend('实部','虚