The reason of the error is that the input arguments to "min" are not "convertible to floating-point numbers" as "xx" is a symbolic variable. To avoid the error, one could wrap the call to "min" in another symbolic function such that "xx" is conceivably reduced to a floating number. Here is the code that does that:
xx = sym('xx','real') ;
symmin = @(x,y)feval(symengine,'min',x,y);
LambdaCC = symfun(sqrt(1-2*symmin(xx,1/2)), xx);
Also, the link below might be helpful as well:
Best Answer