The error message "DOUBLE cannot convert the input expression into a double array"
Show older comments
syms x i z;
offset=3;
n=10;
lambda=1/(10.^((20 - (128.1+37.6*log10(150.*10^-3)))./10));
beta=10^(offset/10);
fx=(lambda^n)*(x^(n-1))*exp(-lambda*x)/factorial(n-1);
P_cond=1-symsum(1/factorial(i)*exp(-lambda*x/beta)*(lambda*x/beta)^i,i,0,n-1);
P_HO=symsum(factorial(8)/(factorial(i)*factorial(8-i))*(P_cond^i)*(1-P_cond)^(8-i),i,5,8);
P_HOt=double(int(fx*P_HO,x,0,inf))
What i like to calculate is last term of above code.
But there is some strange error.
(Error:DOUBLE cannot convert the input expression into a double array If the input expression contains a symbolic variable, use VPA. 오류 발생: sym/double (line 588) Xstr = mupadmex('symobj::double', S.s,0);)
When i set 'lambda = 1', above code doesn`t show me error.
But when purely run above code, error occurs.
I don`t know what is wrong.
Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!