I have data that is a 100x1 vector. How can I display its empirical pdf file in Matlab? Also, if I want to compare the pdf of three vectors on the same graph, then how do I do this?
Now I use the pdfplot.m file to build my empirical pdf, however, when I want to compare 3 distributions using 'hold on', then, firstly, it does not work, and secondly, all distributions are the same color. Thank!
EDIT: I do not want to build cdf.
user238469
source
share