Question

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).

Homework Answers

Answer #1

MATLABCODE:

clc;
close all;
clear all;

T = -1:0.1:1; % Time vector
W = 1; % width of the triangulat pulse
tri = tripuls(T,W) ;
figure;plot(T,tri);grid;title('Energy signal: Triangular pulse');
Acorr = autocorr(tri);
figure;plot(T,Acorr);grid;title('Autocorrelation of Triangular pulse');

% Now take fourier transform of autocorrelation function
% For power spectral density

Fs = 10; % Sampling frequency
T = 1/Fs; % Sampling period
L = length(Acorr); % Length of signal
t = (0:L-1)T; % Time vector
Y = fft(Acorr);

P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2P1(2:end-1);

f = Fs*(0:(L/2))/L;
figure; plot(f,P1) ;grid;
title('Single-Sided Power Spectrum ')
xlabel('f (Hz)')
ylabel('|P1(f)|')

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 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 .
Q) Write a computer program to test the stability of any continuous-time LTI system.( using Matlab)...
Q) Write a computer program to test the stability of any continuous-time LTI system.( using Matlab) Test your program on the impulse response.   h(t)= e^(-2t) u(t) Attached the program (Matlab) file and a screen shot of the results.
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 recursive C++ program that find the duplicate elements in an array. Your program shouldn't...
Write a recursive C++ program that find the duplicate elements in an array. Your program shouldn't use any sorting or use any additional array.
Please write the code in Python. Write a program/function in any Object-Oriented programming language that will...
Please write the code in Python. Write a program/function in any Object-Oriented programming language that will implement Queue Abstract Data Type with the following functions/methods.  Any build-in/pre-defined Queue function/library (e.g., java.util.Queue in Java) is NOT allowed to use in your code. push(Element):  insert the input Element (e.g., String or Integer in Java) to the end of the queue. pop(): remove the head element of the queue and print the head element on screen. count():  return the total number of elements in the queue...
A program for generating random numbers on a computer is to be tested. The program is...
A program for generating random numbers on a computer is to be tested. The program is instructed to generate 100 single-digit integers between 0 and 9. The frequencies of the observed integers were as follows. At the 0.05 level of significance, is there sufficient reason to believe that the integers are not being generated uniformly? Integer 0 1 2 3 4 5 6 7 8 9 Frequency 12 8 8 5 11 11 8 11 13 13 (a) Find the...
Modify your Free Fall program below to plot the energy vs. time for a baseball dropped...
Modify your Free Fall program below to plot the energy vs. time for a baseball dropped from a height of 1000 feet until it hits the ground. Now add in the effects of air resistance into your program. This time, on the energy plot, you will plot four quantities: KE (Red line), PE (Green line), Energy lost due to air resistance (purple line), and total Energy (blue circles). Note, you must calculate the energy lost by using the definition of...
Collapse Write a program that prompts the user to input a positive integer. It should then...
Collapse Write a program that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number. (Note: An even number is prime if it is 2. An odd integer is prime if it is not divisible by any odd integer less than or equal to the square root of the number.) Turn in: Your source code for with The name of your program as a comment at the top...
A program for generating random numbers on a computer is to be tested. The program is...
A program for generating random numbers on a computer is to be tested. The program is instructed to generate 100 single-digit integers between 0 and 9. The frequencies of the observed integers were as follows. At the 0.05 level of significance, is there sufficient reason to believe that the integers are not being generated uniformly? Integer 0 1 2 3 4 5 6 7 8 9 Frequency 12 9 8 5 11 13 8 8 14 12 (a) Find the...
PLEASE COMMENT CODE AND TEST THAT IT WORKS: Write a assembly program to find the largest...
PLEASE COMMENT CODE AND TEST THAT IT WORKS: Write a assembly program to find the largest item in an array and store it in a AX. Hint: Use both Jump and loop instruction to write the program. logic: Assume that the first item of the array is the minimum and store it in AX Write a loop. Inside the loop, compare the each array item with the AX If the array item is less than the AX, update AX with...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT