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 (최근 30일)
% 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
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 1월 25일
편집: KALYAN ACHARJYA 2019년 1월 25일
but it is not showing PSD as expected
What is your expectation?
Mohamad
Mohamad 2019년 1월 25일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by