MATLAB Help Needed - Noise and PSD
hi all,
I 've trying to solve this question since I 've taken it 20 days ago. The output is ZERO. I need help regarding this, pls help me solving or solve this question coz it is due soon and I got no thing to submit. I 've done my best but unfortunately, i got no thing.....:(
anyways, the questions is:
(a) i want to make a program that generate a random waveform with a gaussian pdf of zero mean and 2 Volts rms. Use vector of length 2048 and let the voltage values in the vector represent samples taken at 1millisecond intervels, so that the total duration of the signal is 2048 millisecound.
(b) plot the results waveform
(c)calculate the mean-square value of the wave form
(d)generate and plot the pdf to for the waveform and compare it to a true Gaussian by suprimposing on the same plot the PDF of the true Gussian
(e)calculate and plot the power spectral density (PSD) of the wave form use the Matlab psd command and normalise the results by dividing by the number of elements in your fft
(f)use the PSD to calculate the mean-square value of the original waveform
(g)calculate and plot the autocorrelation function for the waveform
(h)use the ACF the mean-square value of the original waveform
Can any one help me in this pls....
Thank you
I 've trying to solve this question since I 've taken it 20 days ago. The output is ZERO. I need help regarding this, pls help me solving or solve this question coz it is due soon and I got no thing to submit. I 've done my best but unfortunately, i got no thing.....:(
anyways, the questions is:
(a) i want to make a program that generate a random waveform with a gaussian pdf of zero mean and 2 Volts rms. Use vector of length 2048 and let the voltage values in the vector represent samples taken at 1millisecond intervels, so that the total duration of the signal is 2048 millisecound.
(b) plot the results waveform
(c)calculate the mean-square value of the wave form
(d)generate and plot the pdf to for the waveform and compare it to a true Gaussian by suprimposing on the same plot the PDF of the true Gussian
(e)calculate and plot the power spectral density (PSD) of the wave form use the Matlab psd command and normalise the results by dividing by the number of elements in your fft
(f)use the PSD to calculate the mean-square value of the original waveform
(g)calculate and plot the autocorrelation function for the waveform
(h)use the ACF the mean-square value of the original waveform
Can any one help me in this pls....
Thank you
0
Comments
Good luck on finishing it in time
the material is easy to understand but there was no matlap work involved through the semster, this is just like a course project.. the code for part (a,b) and (c) is:
Part (a+b)
function y =sqrt(V)*randn(1,2048)+2 ;
y= 2*randn(1,n);
plot (y);
xlabel= sample index
ylabel= random number value
…………………………….
Part (c)
%msv=mean squar value
msn=0;
for i=1:n;
msv = msv+(2*randn)^2;
end
msv = msv/2048
end
.........................
this is the best i can do. Any help pls!!!
Thank you.
I could possibly help you translate your answers into MATLAB code (or plots) if you post your work/solutions.
thanks a gain
there's a pdf() function, a corr() function (for finding autocorrellation). You can fft() the autocorrelation to get PSD, or you can use the psd() function.
Could you please e-mail me your matlab codes if you have found the answer.