- refactored
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
% Hamming Window
|
||||
% ------------------------------------
|
||||
%
|
||||
% Aufruf:
|
||||
% Function [y]=whamm(x)
|
||||
%
|
||||
% Parameter:
|
||||
%
|
||||
% Rückgabewerte:
|
||||
|
||||
% -------------------------------------------------------------------------
|
||||
% Datum : ..2001
|
||||
% Autor : Jens Ahrensfeld
|
||||
% Thema : Diplomarbeit
|
||||
% Datei : newfunc.m
|
||||
% Benötigte Dateien:
|
||||
%
|
||||
% -------------------------------------------------------------------------
|
||||
function y=whamm(x)
|
||||
|
||||
n = 0:lge(x)-1;
|
||||
y = x.*(0.54-0.46*cos(2*pi*n/(lge(x)-1)))';
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
% Hamming Window
|
||||
% ------------------------------------
|
||||
%
|
||||
% Aufruf:
|
||||
% Function [y]=whamm(x)
|
||||
%
|
||||
% Parameter:
|
||||
%
|
||||
% Rückgabewerte:
|
||||
|
||||
% -------------------------------------------------------------------------
|
||||
% Datum : ..2001
|
||||
% Autor : Jens Ahrensfeld
|
||||
% Thema : Diplomarbeit
|
||||
% Datei : newfunc.m
|
||||
% Benötigte Dateien:
|
||||
%
|
||||
% -------------------------------------------------------------------------
|
||||
function y=winhamm(x)
|
||||
|
||||
n = 0:lge(x)-1;
|
||||
y = x.*(0.54-0.46*cos(2*pi*n/(lge(x)-1)));
|
||||
Reference in New Issue
Block a user