ctfrstft.m

来自「Time-Frequency Toolbox,其中包含很常用的MATLAB程序」· M 代码 · 共 20 行

M
20
字号
%CTFRSTFT Short time Fourier transform% [STFT,T,F,NORM] = Ctfrstft(X,T,N,H);%% Computes the Short Time Fourier Transform (STFT) of Signal%% X         = signal for which the STFT is computed% T         = time instant(s)          (default : 1:length(X)).% N         = number of frequency bins (default : length(X)).% H         = frequency smoothing window (default : Hamming(N/4)). %% STFT      = Computed Short time Fourier Transform% F         = Vector of frequency bins% NORM      = Vector of normalization applied at each time instant%% Example : Spectrogram of a tone embedded in noise%    x = hilbert(sin(2*pi*0.25*(1:128))+0.5*randn(1,128));%    [stft,T,F] = Ctfrstft(x,1:128,128);%    imagesc(T,F,abs(stft).^2); axis xy%% SEE ALSO : Ctfrsp, Ctfrrsp, Cwindow

⌨️ 快捷键说明

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