Files
matlab/common/undcc.m
T
jens b31f3e7435 - added
git-svn-id: http://moon:8086/svn/matlab/trunk@153 801c6759-fa7c-4059-a304-17956f83a07c
2021-03-22 20:28:22 +00:00

27 lines
825 B
Matlab
Executable File

% Erzeugt Filterkoeffizienten für FIR-Filter zur Eliminierung des Gleichanteils
% -----------------------------------------------------------------------------
%
% Aufruf
% Function [coeff] = undcc(N)
%
% Parameter:
% N : Bestimmt Grösse des Koeffizientenvektors
%
% Rückgabewerte:
% coeff : Koeffizientenvektor, Länge N
% -----------------------------------------------------------------------------
% Datum : 26.07.2001
% Autor : Jens Ahrensfeld
% Thema : Diplomarbeit
% Datei : undcc.m
% Benötigte Dateien:
%
% -----------------------------------------------------------------------------
function [coeff] = undcc(N)
% Ansatz: y = x - arith. Mittelwert(x)
coeff = [1.0-1/N ; -1/N*ones(N-1,1)];
% -----------------------------------------------------------------------------
% Ende undcc.m