Why am I getting different matrix size for same input matrix size, while using Empirical distribution?

조회 수: 2 (최근 30일)
x=[817.8 634.4 606.9 773.6 504.8 667.8 1283.6 473 1621.2 764.8 664.8 674.8 570.6 414.8 650.6 874.8 826.4 ]'
y=[646 377 298 504 100 227 504 237 816 456 404.65 615.9 478.9 195.6 433.2 417.2 959.1 ]'
For E_x=ecdf(x); I am getting output matrix size as (18 X 1) while, for E_y=ecdf(y).
I am getting output matrix size as (17 X 1). I am not getting why like this happening as for both input matrix size is (17X 1)
Pawan.
  댓글 수: 1
Roger Stafford
Roger Stafford 2014년 5월 27일
What are the 18 "observed value" outputs from 'ecdf'? That is, what is the second output? That should give you a clue as to the trouble. It would contain one more value than is presumably in your 'x' list.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Probability Density Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by