Question

Write a Matlab program to find the autocorrelation of the following signal : g(t) = e-atu(t)...

Write a Matlab program to find the autocorrelation of the following signal :

g(t) = e-atu(t) , a > 0 .

Then , use the Wiener-Khintchine theorem to determine the energy spectral density of the signal .

Use this program to display the autocorrelation function and the energy spectral density .

Homework Answers

Answer #1

%MATLAB CODE

clc;
clear all;
close all;
fs=1000;
t=0:1/fs:5;
a=0.9;
g=exp(-a*t);
[x,tau]=xcorr(g,g);
subplot(2,1,1)
plot(t,g)
xlabel('Time')
ylabel('Amplitude')
title('Input signal')
subplot(2,1,2)
plot(tau,x)
xlabel('Time')
ylabel('Amplitude')
title('Autocorrelation function of input signal')
%-------------------
figure;
k=0:length(tau)-1;
G=fft(x);
f=k*fs./(length(tau));
plot(-length(f)/2:length(f)/2-1,fftshift(abs(G)))
axis([-100 100 0 max(G)+10])
title('Energy spectral density')
xlabel('frequnecy in Hz')
ylabel('Magnitude')

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
write a computer program to find the auto-correlation of any energy signal and to find its...
write a computer program to find the auto-correlation of any energy signal and to find its energy spectral density. test your program the signal : tri(t/2).
Given continuous analog signal xa(t)= e-100|t|. Write a MATLAB program to display its frequency spectra using...
Given continuous analog signal xa(t)= e-100|t|. Write a MATLAB program to display its frequency spectra using FFT. (Hints: To obtain the sampling signals x(n) = xa(nTs) , the sampling interval Tscan be less than 0.0025 sec)
Write a MATLAB program to determine the factorial value of an input integer between 1 and...
Write a MATLAB program to determine the factorial value of an input integer between 1 and 30. You may NOT use the built-in factorial function. You must implement it using a for loop. Display the result back to the user with 2 decimal places (yes, 2 decimal places). The result should follow the following format:   The factorial value is *.xx
Assignments Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1...
Assignments Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title. Generate and plot the function x2(t) = sin (30pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title. Generate and plot the combination function x3(t) = x1(t)*x2(t) as above. Use proper axes labels with title. Generate and plot the sum of two cosine waves   v1(t) =...
SIGNALS AND SYSTEMS Experiment 1    Signal Generation Date: January 1-8, 2018 The purpose of this...
SIGNALS AND SYSTEMS Experiment 1    Signal Generation Date: January 1-8, 2018 The purpose of this laboratory is to familiarize you with the basic commands in MATLAB for signal generation and verify the generated signal. Objectives 1.Learn basic MATLAB commands and syntax, including help system. 2.Use MATLAB ( from Citrix) to generate and plot different signals. Assignments Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes...
Given signal x(t) = sinc(t): 1. Find out the Fourier transform of x(t), find X(f), sketch...
Given signal x(t) = sinc(t): 1. Find out the Fourier transform of x(t), find X(f), sketch them. 2. Find out the Nyquist sampling frequency of x(t). 3. Given sampling rate fs, write down the expression of the Fourier transform of xs(t), Xs(f) in terms of X(f). 4. Let sampling frequency fs = 1Hz. Sketch the sampled signal xs(t) = x(kTs) and the Fourier transform of xs(t), Xs(f). 5. Let sampling frequency fs = 2Hz. Repeat 4. 6. Let sampling frequency...
Using MATLAB Write a user-defined MATLAB function for the following math function: y(x)= (-0.2x^3 + 7x^2)e^-0.3x...
Using MATLAB Write a user-defined MATLAB function for the following math function: y(x)= (-0.2x^3 + 7x^2)e^-0.3x The input to the function is x and the output is y. Write the function such that x can be a vector (use element-by-element operations). (a) Use the function to calculate y(-1.5) and y(5). (b) Use the function to make a plot of the function y(x) for -2 ≤ x ≤ 6.
. Consider the continuous time signal, x(t) = e jω0t . Write an expression for the...
. Consider the continuous time signal, x(t) = e jω0t . Write an expression for the even and odd portions of this function, and show that the even and odd parts sum up to the original x(t). Do you recognize the even and odd functions? What are they called?
Write a matlab code for following : Load image ‘Balloon.tif’ into Matlab .  Develop a...
Write a matlab code for following : Load image ‘Balloon.tif’ into Matlab .  Develop a function to mark all pixels in green with 1 and 0 for the rest. Display the result image  Convert it into a grayscale image, denoted with ‘img1’  Create a copy of the clean grayscale image, denoted with ‘img2’, in the memory and add salt and pepper noise to it using imnoise  Remove salt and pepper noise using function medfilt2 and display...
Analog Signal Processing & Filter Design Instructions: Please show how you arrived at the result. Use...
Analog Signal Processing & Filter Design Instructions: Please show how you arrived at the result. Use 3 significant figures and scientific or engineering notation. Use standard rounding, >0.5 in the next significant figure, round up & <0.5 round down. Provide the numerical solution to problems (unless the problem asks for a formula or equation). e.g. don't write Ö79, write 8.89, don't write 127/9, write 14.1 For the problem below: Please Use Matlab for plots. Label the Matlab plots, then capture...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT