How to draw probability density function in MatLab?

后端 未结 4 1947
花落未央
花落未央 2021-01-03 00:13
x = [1 2 3 3 4]
cdfplot(x)

After Googling, I find the above code will draw a cumulative distribution function for me in Matlab.
Is there a simp

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 00:25

    type "ksdensity" in matlab help and you will find out the function that will give you the continuous form of PDF. I guess this is exactly what you are looking for.

提交回复
热议问题