clear
load('Sig_noise.mat');
SampFreq = 100;
t = 1/SampFreq : 1/SampFreq : 4;
Sig = sin(2*pi*(17*t + 6*sin(1.5*t)))+sin(2*pi*(40*t + 1*sin(1.5*t)));
S1 = sin(2*pi*(40*t + 1*sin(1.5*t)));
S2 = sin(2*pi*(17*t + 6*sin(1.5*t)));
n=length(Sig);
time=(1:n)/SampFreq;
fre=(SampFreq/2)/(n/2):(SampFreq/2)/(n/2):(SampFreq/2);
IF1=40 + 1.5*cos(1.5*t);
IF2=17 + 6*1.5*cos(1.5*t);
x11=3.05; x22=3.55;
y11=13.5; y22=23.5;
x1=3.05; x2=3.55;
y1=35.5; y2=45.5;
[Ts1]=MSST_Y(Sig_noise(1,:)',50,1);
[Ts1_6]=MSST_Y_new(Sig_noise(1,:)',50,6);
.................................................................
figure
suptitle('Fig. 14');
subplot(221)
imagesc(time,fre,abs(Ts1));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
rectangle('Position',[x11 y11 x22-x11 y22-y11],'EdgeColor','red','Linewidth',1);
ha=subplot(222);
imagesc(time,fre,abs(Ts1));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
set(ha,'xlim',[x11 x22],'ylim',[y11 y22]);
subplot(223)
imagesc(time,fre,abs(Ts1_6));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
rectangle('Position',[x11 y11 x22-x11 y22-y11],'EdgeColor','red','Linewidth',1);
ha=subplot(224);
imagesc(time,fre,abs(Ts1_6));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
set(ha,'xlim',[x11 x22],'ylim',[y11 y22]);
.....................................................................
gamma = 10^(-2);
sigma = 0.055;
SIF1=INT(IF1,time);
SIF2=INT(IF2,time);
[~,~,~,~,~,~,Ts2,Ts3,Ts4] = sstn(Sig_noise(1,:),gamma,sigma);
[RM]=RS_Y(Sig_noise(1,:)',50);
[~, DTs1] = SST2(Sig_noise(1,:)',100,150,IF1,SIF1);
[~, DTs2] = SST2(Sig_noise(1,:)',100,150,IF2,SIF2);
figure
suptitle('Fig. 15');
subplot(221)
imagesc(time,fre,abs(Ts2));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
rectangle('Position',[x11 y11 x22-x11 y22-y11],'EdgeColor','red','Linewidth',1);
ha=subplot(222);
imagesc(time,fre,abs(Ts2));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
set(ha,'xlim',[x11 x22],'ylim',[y11 y22]);
subplot(223)
imagesc(time,fre,abs(Ts4));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
rectangle('Position',[x11 y11 x22-x11 y22-y11],'EdgeColor','red','Linewidth',1);
ha=subplot(224);
imagesc(time,fre,abs(Ts4));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
set(ha,'xlim',[x11 x22],'ylim',[y11 y22]);
.....................................................
figure
suptitle('Fig. 16');
subplot(221)
imagesc(time,fre,abs(RM));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
rectangle('Position',[x11 y11 x22-x11 y22-y11],'EdgeColor','red','Linewidth',1);
ha=subplot(222);
imagesc(time,fre,abs(RM));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
set(ha,'xlim',[x11 x22],'ylim',[y11 y22]);
subplot(223)
imagesc(time,fre,abs(DTs1));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
rectangle('Position',[x11 y11 x22-x11 y22-y11],'EdgeColor','red','Linewidth',1);
ha=subplot(224);
imagesc(time,fre,abs(DTs1));axis xy;
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
set(ha,'xlim',[x11 x22],'ylim',[y11 y22]);
...................................................................
Sig2 = Sig_noise(1,:)-Sig+sin(pi*(17*t + 6*sin(1.5*t)))+sin(pi*(40*t + 1*sin(1.5*t)));
[tfr_wv] = tfrwv(Sig2');
[tfr_pwv] = tfrpwv(Sig2');
[tfr_ridt] = tfrridt(Sig2');
[tfr_ridh] = tfrridh(Sig2');
tfr_wv=abs(tfr_wv(1:200,:));
tfr_pwv=abs(tfr_pwv(1:200,:));
tfr_ridt=abs(tfr_ridt(1:200,:));
tfr_ridh=abs(tfr_ridh(1:200,:));
figure;
suptitle('Fig. 17');
subplot(221);
imagesc(time,fre,abs(tfr_wv));
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
subplot(222);
imagesc(time,fre,abs(tfr_pwv));
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
subplot(223);
imagesc(time,fre,abs(tfr_ridt));
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
subplot(224);
imagesc(time,fre,abs(tfr_ridh));
xlabel('Time / s');
ylabel('Fre / Hz');
axis xy;
.....................................................................
t1=330;
figure
suptitle('Fig. 18');
subplot(211)
%plot(fre,abs(tfr(:,100)));hold on;
plot(fre,abs(Ts1(:,t1)),'b-','linewidth',2);hold on;
plot(fre,abs(RM(:,t1)),'k-','linewidth',2);
plot(fre,abs(Ts2(:,t1)),'c-','linewidth',2);
plot(fre,abs(Ts4(:,t1)),'g-','linewidth',2);
plot(fre,abs(DTs1(:,t1)),'m-','linewidth',2);
plot(fre,abs(Ts1_6(:,t1)),'r-','linewidth',2);
axis([37.5 41 0 1]);
legend('SST','RM','2nd-SST','4th-SST','DSST','MSST')
xlabel('Fre / Hz');
ylabel('Amp / V');
subplot(212)
%plot(fre,abs(tfr(:,300)));hold on;
plot(fre,abs(Ts1(:,t1)),'b-','linewidth',2);hold on;
plot(fre,abs(RM(:,t1)),'k-','linewidth',2);
plot(fre,abs(Ts2(:,t1)),'c-','linewidth',2);
plot(fre,abs(Ts4(:,t1)),'g-','linewidth',2);
plot(fre,abs(DTs1(:,t1)),'m-','linewidth',2);
plot(fre,abs(Ts1_6(:,t1)),'r-','linewidth',2);
axis([18 21 0 1]);
legend('SST','RM','2nd-SST','4th-SST','DSST','MSST')
xlabel('Fre / Hz');
ylabel('Amp / V');
.............................................................
[Cs1] = Ridge_mult_detection_Y(abs(Ts1), 1:2, 2, 1, 5);
[Cs1_6] = Ridge_mult_detection_Y(abs(Ts1_6), 1:2, 2, 1, 5);
Cs1=sort(Cs1,'descend');
Cs1_6=sort(Cs1_6,'descend');
ds=1;
for k=1:2
for j=1:n
Ts1_sig(k,j)=sum(real(Ts1(max(1,Cs1(k,j)-ds):min(round(n/2),Cs1(k,j)+ds),j)));
Ts1_6_sig(k,j)=sum(real(Ts1_6(max(1,Cs1_6(k,j)-ds):min(round(n/2),Cs1_6(k,j)+ds),j)));
end
end
figure;
suptitle('Fig. 19');
subplot(121)
plot(time,IF1,'k-','linewidth',4);hold on;
plot(time,fre(Cs1),'r-','linewidth',1.5);
plot(time,IF2,'k-','linewidth',4);
plot(time,fre(Cs1),'r-','linewidth',1.5);
legend('True IF','Estimated IF');
axis ([0 4 0 50]);
xlabel('Time / s');
ylabel('Fre / Hz');
subplot(122)
plot(time,IF1,'k-','linewidth',4);hold on;
plot(time,fre(Cs1_6),'r-','linewidth',1.5);
plot(time,IF2,'k-','linewidth',4);
plot(time,fre(Cs1_6),'r-','linewidth',1.5);
axis ([0 4 0 50]);
xlabel('Time / s');
ylabel('Fre / Hz');
legend('True IF','Estimated IF');
figure;
suptitle('Fig. 20');
subplot(221)
plot(time,S1,'k-','linewidth',1.5);hold on;plot(time,Ts1_sig(1,:),'r-','linewidth',1);xlabel('Time / s');ylabel('Amp / V');axis ([0 4 -1.5 1.5]);
subplot(222)
plot(time,S2,'k-','linewidth',1.5);hold on;plot(time,Ts1_sig(2,:),'r-','linewidth',1);xlabel('Time / s');ylabel('Amp / V');axis ([0 4 -1.5 1.5]);
subplot(223)
plot(time,S1,'k-','linewidth',1.5);hold on;plot(time,Ts1_6_sig(1,:),'r-','linewidth',1);xlabel('Time / s');ylabel('Amp / V');axis ([0 4 -1.5 1.5]);
subplot(224)
plot(time,S2,'k-','linewidth',1.5);hold on;plot(time,Ts1_6_sig(2,:),'r-','linewidth',1);xlabel('Time / s');ylabel('Amp / V');axis ([0 4 -1.5 1.5]);
legend('Original signal','Reconstructed signal');
没有合适的资源?快使用搜索试试~ 我知道了~
matlab_信号子空间变换算法(SST)的聚焦矩阵
共32个文件
m:27个
mat:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 111 浏览量
2022-07-02
18:26:28
上传
评论
收藏 911KB ZIP 举报
温馨提示
matlab_信号子空间变换算法(SST)的聚焦矩阵 The focus matrix of signal subspace transform (SST) is derived from the relationship between the signal subspace of each frequency point and the reference frequency point
资源推荐
资源详情
资源评论
收起资源包目录
信号子空间变换算法(SST)的聚焦矩阵.zip (32个子文件)
信号子空间变换算法(SST)的聚焦矩阵
SST_Y.m 2KB
SNR.m 262B
tfrpwv.m 2KB
MSST_Y.m 2KB
Ridge_detection_Y.m 2KB
brevridge_mult.m 776B
Example_6.m 3KB
renyi.m 2KB
Example_2.m 7KB
vibdata.mat 8KB
Example_5.m 2KB
vib_data1.mat 637KB
SST2.m 3KB
RS_Y.m 2KB
tfrwv.m 1KB
Example_4.m 3KB
Example_7.m 2KB
tftb_window.m 3KB
Example_8.m 4KB
Example_1.m 2KB
tfrridt.m 3KB
Sig_noise.mat 179KB
Ridge_mult_detection_Y.m 830B
GWdata.mat 31KB
brevridge.m 2KB
Example_3.m 7KB
MSST_Y_new.m 2KB
sstn.m 6KB
integ2d.m 1KB
tfrridh.m 3KB
GWdata_relativity.mat 31KB
INT.m 249B
共 32 条
- 1
资源评论
wouderw
- 粉丝: 274
- 资源: 2960
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功