资源简介
变换的matlab源码,并应用几个信号作为例子来说明怎么使用s变换以及s变换可以用来做些什么事情。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=
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 936 2006-10-25 20:45 stest.m
文件 210 2007-05-29 12:36 readme_st.txt
文件 348912 2006-10-25 20:46 Localization of the Complex Spectrum.pdf
文件 13710 2006-10-25 20:45 st.m
----------- --------- ---------- ----- ----
363986 5
- 上一篇:阶次分析matlab
- 下一篇:一级倒立摆MATLAB程序
相关资源
- 遥感影像融合_数字图像处理的matlab程
- 二维广义S变换
- 地震波S变换matlab程序
- S变换MATLAB程序
- 时频分析-s变换
- 用于时频分析的广义s变换变换代码时
- 广义s变换matlab程序一个以及带注释的
- 引入3个调节因子的改进S变换程序
- MatlabS变换工具箱-sttool.rar
- 图像融合算法
- S变换 matlab源码
- 基于matlab软件实现的s变换
- s变换相关程序
- S变换——Matlab(S变换函数,一个)
- s变换的matlab程序
- 基于改进S变换的电压骤降检测程序
- matlab编写的影像融合程序,包括Brov
- S变换-matlab程序
- IHS变换融合方法
- dwt_ihs_fusion 基于离散小波变换和IHS变
- ImageFusion
- s-t 广义s变换
- 3s/2r变换及2r/3s变换
评论
共有 条评论