tfr_get_win.m
来自「linear time-frequency toolbox」· M 代码 · 共 32 行
M
32 行
function g=tfr_get_win(self,win,L);%TFR_GET_WIN Get analysis/synthesis window.% Usage: g=tfr_get_win(tfr,win,L);%% TFR_GET_WIN(tfr,'analysis',L) will return the analysis window% corresponding to a transform of length L.% Instead of 'analysis' you may use 'a' or 1.%% To get the synthesis window, use 'synthesis', 's' or 2.%% SEE ALSO: TFR_CREATEerror(nargchk(3,3,nargin));global TF_STORAGE;% Verify that TF_STORAGE has been initializedif prod(size(TF_STORAGE))==0 error('Please run TFR_CREATE to obtain a valid handle.');end;switch win case {'analysis','a',1} winpos=assert_winready(self,L,1,0,0,'TFR_GET_WIN'); case {'synthesis','s',2} winpos=assert_winready(self,L,2,0,0,'TFR_GET_WIN'); otherwise error('Unknown window type.');end;g=TF_STORAGE.data{self}.w{winpos}.g;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?