git-svn-id: http://moon:8086/svn/matlab/trunk@153 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2021-03-22 20:28:22 +00:00
parent 1b5742e13e
commit b31f3e7435
140 changed files with 6054 additions and 0 deletions
Executable
+29
View File
@@ -0,0 +1,29 @@
% ##################################################################################
% ## Loesung: Korrelationsfolgen ##
% ## -------------------------------------------------------------------------- ##
% ## Benoetigte(s) m-File(s): ldtft.m ##
% ##################################################################################
% ##### Teilaufgabe a: weisse Rauschfolge #####
n = randn(800,1);
kappa = -799:799;
s_biased = xcorr(n,'biased');
s_unbiased = xcorr(n,'unbiased');
s_coeff = xcorr(n,'coeff');
figure; stem(kappa,s_biased); grid; xlabel('kappa'); ylabel('Amplitude');
title('Autokorrelationsfolge: Nicht erwartungstreu');
figure; stem(kappa,s_unbiased); grid; xlabel('kappa'); ylabel('Amplitude');
title('Autokorrelationsfolge: erwartungstreu');
figure; stem(kappa,s_coeff); grid; xlabel('kappa'); ylabel('Amplitude');
title('Autokorrelationsfolge: auf time-lag Null normiert');
% ##### Teilaufgabe b: Leistungsdichtespektrum #####
n = randn(200,1);
s = xcorr(n,'biased');
[S W] = ldtft(s,512);
figure; semilogy(W/pi, abs(S) ); % normierte Frequenz
grid; xlabel('Omega/pi'); ylabel('|S_xx(exp(j*Omega))|');
title('Leistungsdichtespektrum');
% ##### EOF #####