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)
Ältere Kommentare anzeigen
% 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
am 25 Jan. 2019
Bearbeitet: KALYAN ACHARJYA
am 25 Jan. 2019
but it is not showing PSD as expected
What is your expectation?
Antworten (0)
Siehe auch
Kategorien
Mehr zu Parametric Spectral Estimation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!