S变换画图

The S -transform with windows of arbitrary
and varying shape

 

想画如上的三张图,可是问题

(1)滤波窗口的平滑实现

The filter (applied to the full 200£400 S-transform matrix)
is constructed in Matlab by constructing a two-dimensional
“boxcar”, using
filter = zeros(200,400);
filter(69:128,180:240)=1;
The filter edges are then smoothed by setting the value of
each pixel equal to the average of its four adjacent pixels (this
procedure is repeated 100 times).

(2)S变换中的频率与短时傅里叶变换频率怎么对应

我画出来的频率不太对。。边缘也还没处理。。

 

clear all
% x1=readEIS('35006_6_2121_秒.txt');
% x=x1(:,2);
x1=load('qzh_3.txt');
% x=qzh_3;

points=length(x1);
figure
subplot(211),plot(0:0.02:0.02*(points-1),x1);title('原始信号');grid on; 


 [st_matrix,st_times,st_frequencies] = st(x1) ;
%  imagesc(st_times,st_frequencies,abs(st_matrix))
% imcontour(abs(st_matrix))
ST=abs(st_matrix);
filter = zeros(1501,3000);
filter(100:800,900:1400)=1;
STF=ST.*filter;
STF(STF==0) = NaN;
subplot(212),h=imagesc(STF);%其中C为包含有nan的数据
set(h,'alphadata',~isnan(STF))
ylim([0 1000])
% set(gca, 'ydir', 'reverse');
colorbar
colormapeditor

  

 

 

转载于:https://www.cnblogs.com/gisalameda/p/9090004.html

  • 1
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值