Wrong axis when using KSDENSITY
显示 更早的评论
Hi everyone I have a 1x795 array called GLLlogreturn of positive and negative entries.
I tried to use:
[f,xi]=ksdensity(GLLlogreturn); plot(xi, f);
However....I am getting probabilities on the x axis. Can anybody help me, as for a probability density it should be on the y axis. When I swap xi and f around it gives me a sideways looking graph.
1 个评论
Walter Roberson
2012-2-6
Please try the examples in the documentation,
http://www.mathworks.com/help/toolbox/stats/ksdensity.html
as those do clearly show the xi as not being probabilities.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Exploration and Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!