Probability Density Function (PDF) plot

10 views (last 30 days)
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?
  2 Comments
jean claude
jean claude on 3 Dec 2017
Edited: jean claude on 3 Dec 2017
may be this discussion can help look here by using ksdensity function i think it works
Vijay
Vijay on 3 Dec 2017
Thank you! This helped me. I had to plot the evolution of my pdf over iterations and histogram didn't help me in that case. Thanks again!

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 3 Dec 2017
See if the ecdf (link) function and related functions such as ecdfhist (link) will do what you want.
  2 Comments
Vijay
Vijay on 3 Dec 2017
Thanks for the help! The command plots the Cumulative Density Function of my data. I have to plot the evolution of pdf over time and this command might help me check if my pdf is correct. Appreciate it!

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!