Wrong axis when using KSDENSITY

조회 수: 9 (최근 30일)
Mate 2u
Mate 2u 2012년 2월 6일
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
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개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by