amexpo2s.m
来自「matlab工具箱,可以为一般的时频分析的用户提供很好的学习教材.里面的代码详细」· M 代码 · 共 42 行
M
42 行
function y = amexpo2s(N,t0,T);%AMEXPO2S Generate bilateral exponential amplitude modulation.% Y = AMEXPO2S(N,T0,T) generates a bilateral exponential% amplitude modulation centered on a time T0, and with a % spread proportional to T.% This modulation is scaled such that Y(T0)=1.% % N : number of points.% T0 : time center (default : N/2).% T : time spreading (default : 2*sqrt(N)).% Y : signal.%% Examples:% z=amexpo2s(160);plot(z);% z=amexpo2s(160,90,40);plot(z);% z=amexpo2s(160,180,50);plot(z);%% See also AMEXPO1S, AMGAUSS, AMRECT, AMTRIANG.% F. Auger, July 1995.% Copyright (c) 1996 by CNRS (France).%% ------------------- CONFIDENTIAL PROGRAM -------------------- % This program can not be used without the authorization of its% author(s). For any comment or bug report, please send e-mail to % f.auger@ieee.org if (nargin == 0), error ( 'The number of parameters must be at least 1.' );elseif (nargin == 1), t0=N/2; T=2*sqrt(N);elseif (nargin ==2), T=2*sqrt(N);end;if (N<=0), error('N must be greater or equal to 1.');else tmt0=(1:N)'-t0; y = exp(-sqrt(2*pi)*abs(tmt0)/T);end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?