Autocorrelation and spectral density in MATLAB
up vote
0
down vote
favorite
This question is twofold.
We have an LTI system that is a first degree Butterworth LP filter with the power TF
where fu = 110Hz
and f1 = 90Hz
The input X(t)
has the autocorrelation: R_X(tau) = 5e^{-600|tau|}
1) How can I calculate the power spectral density of the output in MATLAB? FFT? How do I represent the autocorrelation as a vector?
2) How can I simulate the system and plot the output in MATLAB?
matlab correlation
migrated from stackoverflow.com Apr 13 '14 at 22:13
This question came from our site for professional and enthusiast programmers.
add a comment |
up vote
0
down vote
favorite
This question is twofold.
We have an LTI system that is a first degree Butterworth LP filter with the power TF
where fu = 110Hz
and f1 = 90Hz
The input X(t)
has the autocorrelation: R_X(tau) = 5e^{-600|tau|}
1) How can I calculate the power spectral density of the output in MATLAB? FFT? How do I represent the autocorrelation as a vector?
2) How can I simulate the system and plot the output in MATLAB?
matlab correlation
migrated from stackoverflow.com Apr 13 '14 at 22:13
This question came from our site for professional and enthusiast programmers.
mathworks.se/help/signal/ug/psd-estimate-using-fft.html
– tashuhka
Apr 12 '14 at 13:57
possible duplicate of Calculate autocorrelation using FFT in matlab
– tashuhka
Apr 12 '14 at 13:58
I thought I had posted this in math.stackexhange, oh well.
– user2750354
Apr 12 '14 at 17:12
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This question is twofold.
We have an LTI system that is a first degree Butterworth LP filter with the power TF
where fu = 110Hz
and f1 = 90Hz
The input X(t)
has the autocorrelation: R_X(tau) = 5e^{-600|tau|}
1) How can I calculate the power spectral density of the output in MATLAB? FFT? How do I represent the autocorrelation as a vector?
2) How can I simulate the system and plot the output in MATLAB?
matlab correlation
This question is twofold.
We have an LTI system that is a first degree Butterworth LP filter with the power TF
where fu = 110Hz
and f1 = 90Hz
The input X(t)
has the autocorrelation: R_X(tau) = 5e^{-600|tau|}
1) How can I calculate the power spectral density of the output in MATLAB? FFT? How do I represent the autocorrelation as a vector?
2) How can I simulate the system and plot the output in MATLAB?
matlab correlation
matlab correlation
asked Apr 12 '14 at 11:11
user2750354
94212
94212
migrated from stackoverflow.com Apr 13 '14 at 22:13
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Apr 13 '14 at 22:13
This question came from our site for professional and enthusiast programmers.
mathworks.se/help/signal/ug/psd-estimate-using-fft.html
– tashuhka
Apr 12 '14 at 13:57
possible duplicate of Calculate autocorrelation using FFT in matlab
– tashuhka
Apr 12 '14 at 13:58
I thought I had posted this in math.stackexhange, oh well.
– user2750354
Apr 12 '14 at 17:12
add a comment |
mathworks.se/help/signal/ug/psd-estimate-using-fft.html
– tashuhka
Apr 12 '14 at 13:57
possible duplicate of Calculate autocorrelation using FFT in matlab
– tashuhka
Apr 12 '14 at 13:58
I thought I had posted this in math.stackexhange, oh well.
– user2750354
Apr 12 '14 at 17:12
mathworks.se/help/signal/ug/psd-estimate-using-fft.html
– tashuhka
Apr 12 '14 at 13:57
mathworks.se/help/signal/ug/psd-estimate-using-fft.html
– tashuhka
Apr 12 '14 at 13:57
possible duplicate of Calculate autocorrelation using FFT in matlab
– tashuhka
Apr 12 '14 at 13:58
possible duplicate of Calculate autocorrelation using FFT in matlab
– tashuhka
Apr 12 '14 at 13:58
I thought I had posted this in math.stackexhange, oh well.
– user2750354
Apr 12 '14 at 17:12
I thought I had posted this in math.stackexhange, oh well.
– user2750354
Apr 12 '14 at 17:12
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
To calculate the Autocorrelation of the output:
R_y = xcorr(y); % with Y(f) = X(f).H(f) or y(t) = x(t)*h(t)
To calculate the P.S.D of the output:
PSD_y = fft (R_y);
To reprensent them graphically, you can use plot
if you do not have the x(t) or X(f) expressions, you could use this relation:
PSD_y (f) = PSD_x (f) . |H(f)|^2 % with PSD_x (f) = fft(R_x);
I have the autocorrelation of X, but I don't know the actual x. How can I do this given the autocorrelation?
– user2750354
Apr 12 '14 at 11:50
see my updated answer, and let me know if it worked. thx
– user51886
Apr 12 '14 at 13:59
you meanPSD_y = abs(fft(y)).^2
possibly with zero paddingPSD_y = abs(fft(y, 2*length(y))).^2
– reuns
Oct 11 '16 at 0:12
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
To calculate the Autocorrelation of the output:
R_y = xcorr(y); % with Y(f) = X(f).H(f) or y(t) = x(t)*h(t)
To calculate the P.S.D of the output:
PSD_y = fft (R_y);
To reprensent them graphically, you can use plot
if you do not have the x(t) or X(f) expressions, you could use this relation:
PSD_y (f) = PSD_x (f) . |H(f)|^2 % with PSD_x (f) = fft(R_x);
I have the autocorrelation of X, but I don't know the actual x. How can I do this given the autocorrelation?
– user2750354
Apr 12 '14 at 11:50
see my updated answer, and let me know if it worked. thx
– user51886
Apr 12 '14 at 13:59
you meanPSD_y = abs(fft(y)).^2
possibly with zero paddingPSD_y = abs(fft(y, 2*length(y))).^2
– reuns
Oct 11 '16 at 0:12
add a comment |
up vote
0
down vote
To calculate the Autocorrelation of the output:
R_y = xcorr(y); % with Y(f) = X(f).H(f) or y(t) = x(t)*h(t)
To calculate the P.S.D of the output:
PSD_y = fft (R_y);
To reprensent them graphically, you can use plot
if you do not have the x(t) or X(f) expressions, you could use this relation:
PSD_y (f) = PSD_x (f) . |H(f)|^2 % with PSD_x (f) = fft(R_x);
I have the autocorrelation of X, but I don't know the actual x. How can I do this given the autocorrelation?
– user2750354
Apr 12 '14 at 11:50
see my updated answer, and let me know if it worked. thx
– user51886
Apr 12 '14 at 13:59
you meanPSD_y = abs(fft(y)).^2
possibly with zero paddingPSD_y = abs(fft(y, 2*length(y))).^2
– reuns
Oct 11 '16 at 0:12
add a comment |
up vote
0
down vote
up vote
0
down vote
To calculate the Autocorrelation of the output:
R_y = xcorr(y); % with Y(f) = X(f).H(f) or y(t) = x(t)*h(t)
To calculate the P.S.D of the output:
PSD_y = fft (R_y);
To reprensent them graphically, you can use plot
if you do not have the x(t) or X(f) expressions, you could use this relation:
PSD_y (f) = PSD_x (f) . |H(f)|^2 % with PSD_x (f) = fft(R_x);
To calculate the Autocorrelation of the output:
R_y = xcorr(y); % with Y(f) = X(f).H(f) or y(t) = x(t)*h(t)
To calculate the P.S.D of the output:
PSD_y = fft (R_y);
To reprensent them graphically, you can use plot
if you do not have the x(t) or X(f) expressions, you could use this relation:
PSD_y (f) = PSD_x (f) . |H(f)|^2 % with PSD_x (f) = fft(R_x);
answered Apr 12 '14 at 11:29
user51886
I have the autocorrelation of X, but I don't know the actual x. How can I do this given the autocorrelation?
– user2750354
Apr 12 '14 at 11:50
see my updated answer, and let me know if it worked. thx
– user51886
Apr 12 '14 at 13:59
you meanPSD_y = abs(fft(y)).^2
possibly with zero paddingPSD_y = abs(fft(y, 2*length(y))).^2
– reuns
Oct 11 '16 at 0:12
add a comment |
I have the autocorrelation of X, but I don't know the actual x. How can I do this given the autocorrelation?
– user2750354
Apr 12 '14 at 11:50
see my updated answer, and let me know if it worked. thx
– user51886
Apr 12 '14 at 13:59
you meanPSD_y = abs(fft(y)).^2
possibly with zero paddingPSD_y = abs(fft(y, 2*length(y))).^2
– reuns
Oct 11 '16 at 0:12
I have the autocorrelation of X, but I don't know the actual x. How can I do this given the autocorrelation?
– user2750354
Apr 12 '14 at 11:50
I have the autocorrelation of X, but I don't know the actual x. How can I do this given the autocorrelation?
– user2750354
Apr 12 '14 at 11:50
see my updated answer, and let me know if it worked. thx
– user51886
Apr 12 '14 at 13:59
see my updated answer, and let me know if it worked. thx
– user51886
Apr 12 '14 at 13:59
you mean
PSD_y = abs(fft(y)).^2
possibly with zero padding PSD_y = abs(fft(y, 2*length(y))).^2
– reuns
Oct 11 '16 at 0:12
you mean
PSD_y = abs(fft(y)).^2
possibly with zero padding PSD_y = abs(fft(y, 2*length(y))).^2
– reuns
Oct 11 '16 at 0:12
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f752473%2fautocorrelation-and-spectral-density-in-matlab%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
mathworks.se/help/signal/ug/psd-estimate-using-fft.html
– tashuhka
Apr 12 '14 at 13:57
possible duplicate of Calculate autocorrelation using FFT in matlab
– tashuhka
Apr 12 '14 at 13:58
I thought I had posted this in math.stackexhange, oh well.
– user2750354
Apr 12 '14 at 17:12