资源简介
小波变换的改进程序-S变换 时频处理性能更佳
代码片段和文件信息
function [sttf] = st(timeseriesminfreqmaxfreqsamplingratefreqsamplingrate)
% Returns the Stockwell Transform of the timeseries.
% Code by Robert Glenn Stockwell.
% DO NOT DISTRIBUTE
% BETA TEST ONLY
% Reference is “Localization of the Complex Spectrum: The S Transform“
% from IEEE Transactions on Signal Processing vol. 44. number 4 April 1996 pages 998-1001.
%
%-------Inputs Needed------------------------------------------------
%
% *****All frequencies in (cycles/(time unit))!******
% “timeseries“ - vector of data to be transformed
%-------Optional Inputs ------------------------------------------------
%
%“minfreq“ is the minimum frequency in the ST result(Default=0)
%“maxfreq“ is the maximum frequency in the ST result (Default=Nyquist)
%“samplingrate“ is the time interval between samples (Default=1)
%“freqsamplingrate“ is the frequency-sampling interval you desire in the ST result (Default=1)
%Passing a negative number will give the default ex. [stf] = st(data-1-122)
%-------Outputs Returned------------------------------------------------
%
% st -a complex matrix containing the Stockwell transform.
% The rows of STOutput are the frequencies and the
% columns are the time values ie each column is
% the “local spectrum“ for that point in time
% t - a vector containing the sampled times
% f - a vector containing the sampled frequencies
%--------Additional details-----------------------
% % There are several parameters immediately below that
% the user may change. They are:
%[verbose] if true prints out informational messages throughout the function.
%[removeedge] if true removes a least squares fit parabola
% and puts a 5% hanning taper on the edges of the time series.
% This is usually a good idea.
%[analytic_signal] if the timeseries is real-valued
% this takes the analytic signal and STs it.
% This is almost always a good idea.
%[factor] the width factor of the localizing gaussian
% ie a sinusoid of period 10 seconds has a
% gaussian window of width factor*10 seconds.
% I usually use factor=1 but sometimes factor = 3
% to get better frequency resolution.
% Copyright (c) by Bob Stockwell
% $Revision: 1.2 $ $Date: 1997/07/08 $
% This is the S transform wrapper that holds default values for the function.
TRUE = 1;
FALSE = 0;
%%% DEFAULT PARAMETERS [change these for your particular application]
verbose = TRUE;
removeedge= FALSE;
analytic_signal = FALSE;
factor = 1;
%%% END of DEFAULT PARAMETERS
%%%START OF INPUT VARIABLE CHECK
% First: make sure it is a valid time_series
% If not return the help message
if verbose disp(‘ ‘)end % i like a line left blank
if nargin == 0
if verbose disp(‘No parameters inputted.‘)end
st_help
t=0;st=-
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13724 2014-08-30 13:08 st\st.m
文件 934 2014-02-17 16:32 st\st1.m
文件 1009 2014-03-07 13:54 st\stest.m
目录 0 2014-03-31 21:32 st
----------- --------- ---------- ----- ----
15667 4
- 上一篇:HFSS-MATLAB-API接口
- 下一篇:SPWM_simuli
nk.zip
相关资源
-
SPWM_simuli
nk.zip - HFSS-MATLAB-API接口
-
单相接地故障的matlab仿真 simuli
nk - FWM 耦合方程 matlab代码
- MATLAB实现K-means聚类
- matlab制作哈哈镜
- 极化雷达图像Lee滤波源代码MATLAB版
- OFDMA的matlab仿真
- 径向基神经网络MATLAB仿真
- 单脉冲相位和差测角MATLAB程序
- 星座图-MATLAB
- 一个带通滤波的matlab小程序
- 维纳滤波器在matlab中实现的源程序
- 图像分类评价标准 matlab
- matlab FFT编程,包括时域波形与频域曲
- matla特征降维搜索算法,sfssffs等搜索
- MATLAB读取USB摄像头
- 微电网下垂控制MATLAB仿真
- turbo编译码MATLAB版本亲测可用
- 超临界二氧化碳布雷顿简单循环MATL
- 局部均值分解Local Mean Decomposition算法
- 求质心程序
- 滑动t检验MATLAB代码
- gabor+svm matlab程序,一共三个文件,两
- 基于正则化的图像超分辨重建matlab代
- matlab针对自动控制系统求取参数
- UKF的MATLAB程序
- 虚拟同步发电机
- 语音增强matlab实现代码
- SVM增量式学习的自适应与优化的MATL
评论
共有 条评论