Question regarding compute and plot DC-centered Power Spectral Density for Time Autocoorelation function , Rx(tau)=exp(-tau/T) , I have 3 different T values ( 1 , 5 , 10 ) , code below but it is not showing PSD as expected

1 Ansicht (letzte 30 Tage)
% script plotting Autocorrelation function for different T values
% Plotting Power Spectral Density
% Rx(tau)=exp(-tau/T)Rx(tau)=exp(-tau/T)
clc
clear
m=5;
tau=-10:0.01:10;
L=length(tau);
T=[1 5 10];
for j=1:3
xt(:,j)=exp(-abs(tau)/T(j));
[Pxx(:,j),f(:,j)] = periodogram(xt(:,j));
figure(1)
subplot(3,1,j)
plot(tau,xt(:,j))
grid on
grid minor
xlabel('Tau in Seconds')
ylabel('R_x(Tau)')
figure(2)
subplot(3,1,j)
plot(f,10*log10(Pxx(:,j)))
grid on
grid minor
xlabel('Hz')
ylabel('dB')
end
How to compute and plot DC-centered Power Spectral DensityDC-centered Power Spectral Density for Time Autocoorelation function , Rx(tau)=exp(-tau/T) Time Autocoorelation function , Rx(tau)=exp(-tau/T) , I have 3 different T values ( 1 , 5 , 10 ) , code below but it is not showing PSD as expected
  2 Kommentare
KALYAN ACHARJYA
KALYAN ACHARJYA am 25 Jan. 2019
Bearbeitet: KALYAN ACHARJYA am 25 Jan. 2019
but it is not showing PSD as expected
What is your expectation?
Mohamad
Mohamad am 25 Jan. 2019
I need to see in the plot , as i change T value , then PSD becomes wide in frequency domain or narrow according to the value of T

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by