Auto Correlation Function Autocorrelation function is a measure of similarity between a signal & its time-delayed version. It is represented with R(k). While the autocorrelation function of x(n) is determined by
R11 (k) =R(k)=
Steps to perform auto correlation:
Program:
clc;
close all;
clear all;
% Let’s the two input sequences
x=input(‘enter input sequence’)
subplot(1,2,1);
stem(x);
xlabel(‘n’);
ylabel(‘x(n)’);
title(‘input sequence’);
% And the auto correlation of the given input sequence
z=xcorr(x, x);
disp(‘The values of z are = ‘);
disp(z);
subplot(1,2,2);
stem(z);
xlabel(‘n’);
ylabel(‘z(n)’);
title(‘auto correlation of input sequence’);
OUTPUT:
Enter input sequence [2 4 5 6]
x = 2 4 5 6
And the values of z are =
12.0000 34.0000 58.0000 81.0000 58.0000 34.0000 12.0000
Systems respond differently to inputs of different frequencies. Where some of the systems may amplify components with certain frequencies, and attenuate components of other frequencies. And the way system output is related to the system input with different frequencies is called the frequency response of the system. We can convert it to polar notation in the complex plane. This will provides us the magnitude and an angle. We call the angle the phase.
Amplitude Response: For each frequency, the magnitude represents the system’s tendency to amplify or attenuate the input signal.
Phase Response: The phase represents the system’s tendency to modify the phase of the input sinusoids.
Program:
clc;
clear all;
b=input(‘Enter the numerator coefficients:’);
a=input(‘Enter the denominator coefficients:’);
[h,w]=freqz(b,a);
subplot(2,1,1);
plot(w/pi,abs(h));
grid;
xlabel(‘Normalised Frequency’);
ylabel(‘Magnitude in dB’);
title(‘Magnitude Response’);
subplot(2,1,2);
plot(w/pi,angle(h));
grid;
xlabel(‘Normalized Frequency’);
ylabel(‘phase in radians’);
title(‘Phase Response’);
Introduction: When your Hisense TV won't connect to WiFi, it is rarely a problem with…
Hisense Google TV Storage Space Running Out: Why it Happens and How to Fix It…
Introduction: "Setting up a soundbar with your Samsung TV should be simple, but the HDMI…
User Problem Scenario: The Red Light "Panic" You press the power button on your Samsung…
Introduction: I Know the Feeling "We’ve all been there. You sit down to watch your…
User Problem Scenario: The "Diagnosis Loop" Paradox Imagine you notice your apps are slow. You…