Power Spectral Density of a bipolar digital signal
I am having a difficult time trying to plot the power spectral density of a bipolar digital signal with random values, based on an array. For example:
signal=[0 -1 1 0 1 -1];
Then I create a time vector based on a transfer rate of a specified value like this:
D=160000 % rate transfer of 160Kbps
t=[0:1/D:length(signal)/D];
And I plot the signal like this:
stairs(t,signal);
My signal looks like this :
My question is what should I do to be able to represent the power spectral density of such a signal? Is there a more direct way in Matlab than it would be by implementing all kinds of formulas? In theory, my plot should look roughly like this:
Thanks in advance!I am having a difficult time trying to plot the power spectral density of a bipolar digital signal with random values, based on an array. For example:
signal=[0 -1 1 0 1 -1];
Then I create a time vector based on a transfer rate of a specified value like this:
D=160000 % rate transfer of 160Kbps
t=[0:1/D:length(signal)/D];
And I plot the signal like this:
stairs(t,signal);
My signal looks like this :
My question is what should I do to be able to represent the power spectral density of such a signal? Is there a more direct way in Matlab than it would be by implementing all kinds of formulas? In theory, my plot should look roughly like this:
Thanks in advance! I am having a difficult time trying to plot the power spectral density of a bipolar digital signal with random values, based on an array. For example:
signal=[0 -1 1 0 1 -1];
Then I create a time vector based on a transfer rate of a specified value like this:
D=160000 % rate transfer of 160Kbps
t=[0:1/D:length(signal)/D];
And I plot the signal like this:
stairs(t,signal);
My signal looks like this :
My question is what should I do to be able to represent the power spectral density of such a signal? Is there a more direct way in Matlab than it would be by implementing all kinds of formulas? In theory, my plot should look roughly like this:
Thanks in advance! psd, power spectral density, digital signal, array based signal MATLAB Answers — New Questions