Problem with wblfit.

조회 수: 11 (최근 30일)
Max
Max 2016년 2월 2일
댓글: Max 2016년 2월 10일
Hello,
I would like to fit my data set to the weibull distribution. But I always get the message:X must be a vector containing positive values
My code is:
t_S1 is a 10x10.000 double
for i=1:length(t_S1); par1(i,:)=wblfit(t_S1(i,:)); sor1(i,:)=sort(t_S1(i,:)); plot(sor1,1-wblcdf(sor1,par1(i,1),par1(i,2)));hold on; grid on; end
Can somebody help me, please?
  댓글 수: 1
Max
Max 2016년 2월 2일
PS: All items in the matrix t_S1 are positive.

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

답변 (1개)

Subin Kuttappan Stellal Mary
Subin Kuttappan Stellal Mary 2016년 2월 10일
Hi Max,
Following link looks similar to your problem. I suggest you to try out the accepted answer given in the link :
  댓글 수: 1
Max
Max 2016년 2월 10일
Thx Subin, that works!

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by