fun = @(x)(2*x +1)/sqrt(x .*(1- x));%这里的除如果写成了/,就会疯狂报错
q = integral(fun,0,1)>>>
Error using integralCalc/finalInputChecks (line 526)
Output of the function must be the same size as the input. If FUN is an array-valued integrand,set the
'ArrayValued' option to true.