PDF (Probability Density Function) of a 2D matrix of values
36 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
matnewbie
am 9 Nov. 2015
Beantwortet: Tom Lane
am 11 Nov. 2015
I have a 2D matrix of values in .csv text file format (see the file attached) and I want to make a plot of the PDF (Probability Density Function) of these values. How could I do this? Thank you in advance.
0 Kommentare
Akzeptierte Antwort
Tom Lane
am 11 Nov. 2015
If you have your data in the matrix M and you want to ignore the zeros and the relative locations of the values, you could try
histogram(M(M>0))
If you want to fit a distribution such as log-logistic, you could try
p = fitdist(M(M>0),'loglogistic')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!