MATLAB: Probability Density Function (PDF) plot

histogramMATLABnoiseprobability

I have a vector of binary elements and I form another vector of the same length by mapping
{0,1} --> {1,-1}
respectively. White Gaussian Noise is added to this vector and by the property of random vectors, this vector, now say R, is also a random vector. Is there a way to plot the distribution of this vector R other than the histogram method?

Best Answer

See if the ecdf (link) function and related functions such as ecdfhist (link) will do what you want.