gaussw.m
来自「A MATLAB tool for analysis of Transient 」· M 代码 · 共 17 行
M
17 行
function w = gaussw(n, s)
% w = gaussw(n, s)
%
% gaussw calculates n-point window of the form of Gauss-curve.
%
% in: n length of the window
% s window parameter (default 0.45)
%
% out: w window in column vector
% (c) Heimo Ihalainen 24.7.1988
if nargin<2; s = 0.45; end
%
T = 2/(n-1)*((1:n)'-(n+1)/2); w = exp(-(T/s).^2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?