Hello MATLAB community
I am trying to solve the folowing integral
Here is my code
However MATLAB throws an error
Error using integralCalc/finalInputChecks (line 511)
Input function must return 'double' or 'single' values. Found
'sym'.
N=10;S=[20 25 18 29 17 28 23 20 21 30];normA = S - min(S(:));normA = normA ./ max(normA(:));A=normA;A(5)=0.1;syms k xp=subs(k.^(x-1),k,[A(1:N)]);L=(prod(p));fun3=@(x)x.^(N-1).*[L];q2=(integral(fun3,0,inf));
Best Answer