morlet_sin_yueqin_st.m

来自「基于morlet小波的最小二乘匹配追踪算法」· M 代码 · 共 20 行

M
20
字号
function [out1,out2]=morlet_sin_yueqin_st(LB,UB,N,f,t0,k)
%MORLET Morlet wavelet.
%   [PSI,X] = MORLET(LB,UB,N) returns values of 
%   the Morlet wavelet on an N point regular grid 
%   in the interval [LB,UB].
%   Output arguments are the wavelet function PSI
%   computed on the grid X, and the grid X.
%
%   This wavelet has [-4 4] as effective support.
%
%   See also WAVEINFO.

%   M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 12-Mar-96.
%   Last Revision: 14-May-2003.
%   Copyright 1995-2004 The MathWorks, Inc.
% $Revision: 1.12.4.2 $

% Compute values of the Morlet wavelet.
out2 = linspace(LB,UB,N);        % wavelet support.
out1 = exp(-((out2-t0).^2)*(f^2)*log(2)/k) .* sin(2*pi*f*(out2-t0));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?