%% 随机共振stochastic resonace进行弱信号的检测的程序
clear all
close all;
clc;
%%
%
% *******************************set parameter**********************
f=9.251; % freqency of the signal
Ts=1/f;
h=1/f;
D=0.31;
a=1;
b=1;
fai=0.512*pi; % phase of the signal
snr=-20; % SNR in dB(logarithmic)
t=0:0.001:32; % time vector
s=cos(2*pi*f*t+fai); % signal with the Amplify of 1
%
% *******************************nosie generation**********************
%
tr=sqrt(2*D)*randn(size(t));
Amplifytr=max(abs(tr));
ampsig=Amplifytr*10^(snr/20);
s=ampsig*s;
%
% *******************************signal with nosie generation***********
%
x1=s+tr;
%
%%
y=fft(x1,4096);
pyy=y.*conj(y)/4096;
ff=f*(0:2048)/4096;
figure(1)
subplot(2,2,1)
plot(t,x1,'k')
title('输入信号sn')
xlabel('时间')
ylabel('幅度')
subplot(2,2,2)
plot(ff,pyy(1:2049),'k')
xlabel('频率 ')
ylabel('幅度')
title('输入信号sn的频谱')
axis([-0.1 0.1 0 1000])
x=sr(a,b,h,x1);
y=fft(x,4096);
py=y.*conj(y)/4096;
ff=f*(0:2048)/4096;
subplot(2,2,3)
plot(t,x,'k')
title('输出信号x')
xlabel('时间')
ylabel('幅度')
subplot(2,2,4)
plot(ff,py(1:2049),'k')
xlabel('频率y')
ylabel('幅度')
title('输出信号x的频谱')
axis([-0.1 0.1 0 1000])
【信号检测】基于matlab随机共振弱信号检测【含Matlab源码 3588期】.zip
版权申诉
74 浏览量
2023-12-07
10:05:45
上传
评论
收藏 33KB ZIP 举报
![avatar](https://profile-avatar.csdnimg.cn/22c46cb7417b40989d92d67df86b9fff_tiqcmatlab.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
海神之光
- 粉丝: 3w+
- 资源: 2125
最新资源
- 基于 python神经网络实现人类颜值评分
- 使用android实现计算器功能
- 305建筑结构水电欧式6套(14.5x20.2)\施工图1-11卫生间大样031026.dwg
- 305建筑结构水电欧式6套(14.5x20.2)\施工图1-09楼梯大样031026.dwg
- 基于PCL、C++编写的格网边缘点检测程序与代码
- 苹果cms源码 cms视频源码下载v10影视模板 苹果cms官方采集资源站.zip
- 305建筑结构水电欧式6套(14.5x20.2)\施工图1-1-04C型平面031026.dwg
- 【C语言课设】活动管理系统讲解(完整代码)
- 305建筑结构水电欧式6套(14.5x20.2)\施工图1-1-03总平面031026.dwg
- 探索Linux操作系统:开源世界的核心
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)