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?