资源简介
MatlabS变换工具箱-sttool.rar
包括一个测试文件。 sttool.rar
包括一个测试文件。 sttool.rar
代码片段和文件信息
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=
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 936 2009-12-31 15:14 stest.m
文件 13710 2009-12-31 15:14 st.m
----------- --------- ---------- ----- ----
14646 2
相关资源
- matlab自己做的平面连杆机构通用仿真
- 变压变频器设计及MATLAB仿真包含了仿
- 非常简单的MatLab加密程序原创-MatLab加
- 直流双闭环控制系统的MATLAB仿真-lei
-
MatlabGUI调用Simuli
nk编译成可执行的 -
汽车动力学simuli
nk仿真程序很精典 -
用simuli
nk和simscape仿真直流电动机 - Matlab的hough圆检测-soble_hough.m
- Matlab粒子群神经网络的预测编程实现
-
基于MatlabSimuli
nk的汽车防抱制动系统 - Matlab有关多目标遗传算法和多目标优
- QPSK调制解调及误码率的计算-BPSK_AWG
-
Simuli
nk模块参数在线修改方法-Simu - MATLAB通信仿真及应用详解
-
基于MATLABsimuli
nk的扩频通信系统仿真 - MATLAB在数字图像处理中的应用-MATLAB在
- 预测函数控制及MATLAB源程序-预测函数
- BP神经网络的改进算法研究-MATLAB7_0中
- 小波与FFT去噪-小波与FFT去噪.m
- 用MATLAB生成达到出版质量的图形-exp
- RBF神经网络用于函数拟合与模式识别
- MATLAB动画演示程序汇总-MATLAB 动画演示
- Matlab阶跃折射率分布均匀光纤的光场
- 小波的代码-sub_m.m
- matlab串级PID仿真模型-串级PID.rar
- matlab实现视频中动态目标跟踪程序及
- Matlab模拟退火算法-模拟退火.zip
- SPWM有需求的看过来-siqu_sanxiang_SPWM.m
- Matlab无线信道建模与仿真-无线信道建
- 基于MATLAB的粒子群优化算法及其应用
评论
共有 条评论