kstest函数。

조회 수: 1 (최근 30일)
netoj
netoj 2022년 11월 21일
답변: yeteta 2022년 11월 21일
x=[3.2 3.4 3.8 4.1 4.8 5.0 6.1 8.5 8.8 9.0 10.1 10.5 10.9 11.4 12.95 15 15.9 16.1 18.4 18.5];cdf=[x,normcdf(x,9.8225,5.0572)];h=kstest(x,cdf)
为什么出现错误提示:
Error using kstest (line 128)Hypothesized CDF matrix must have 2 columns.
应该怎么修改呢?

채택된 답변

yeteta
yeteta 2022년 11월 21일
x=[3.2 3.4 3.8 4.1 4.8 5.0 6.1 8.5 8.8 9.0 10.1 10.5 10.9 11.4 12.95 15 15.9 16.1 18.4 18.5]‘;cdf=[x,normcdf(x,9.8225,5.0572)];h=kstest(x,cdf)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Weibull 分布에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!