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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
% 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 comentarios
KALYAN ACHARJYA
el 25 de En. de 2019
Editada: KALYAN ACHARJYA
el 25 de En. de 2019
but it is not showing PSD as expected
What is your expectation?
Respuestas (0)
Ver también
Categorías
Más información sobre Parametric Spectral Estimation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!