MATLAB Help Needed - Noise and PSD

edited December 2007 in Science & Tech
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

Comments

  • KyleKyle Lafayette, LA New
    edited January 2007
    LOL I just got my degree in Electrical Engineering and I can't help you with this at all. That's kinda sad. What class is this for? Do you have a book for the class? Is your problem that you don't understand the material or you don't understand MATLAB?

    Good luck on finishing it in time
  • shwaipshwaip bluffin' with my muffin Icrontian
    edited January 2007
    where's your code?
  • edited January 2007
    The course is Noise processing..
    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.
  • KyleKyle Lafayette, LA New
    edited January 2007
    You can plot data in MATLAB using the "plot" command. For more info on plot and other commands, type "help plot" in the MATLAB command prompt.

    I could possibly help you translate your answers into MATLAB code (or plots) if you post your work/solutions.
  • edited January 2007
    thank you guys for your help. But I didn't go any further than what i posted earlier. that's all what i got (till part c). Now I need to solve the rest... any ideas ???

    thanks a gain
  • shwaipshwaip bluffin' with my muffin Icrontian
    edited January 2007
    does your code so far work?

    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.
  • edited December 2007
    hi sickness
    Could you please e-mail me your matlab codes if you have found the answer.
  • shwaipshwaip bluffin' with my muffin Icrontian
    edited December 2007
    It's unlikely that he (or you, I suppose) will ever read this post again. If you have a question, feel free to make a new post.
Sign In or Register to comment.