Hello everybody,
I have a problem with my integral, it is supposed to integrate the function from 0 to s and then equate that to RHS (which is an integer value previously obtained) to further obtain s.
Thank you all
%Left Hand Side of the Equation
fun2=@(x)((s-x).*((b/a).*((x/a).^(b-1)))/(1+((x/a).^b)).^2);LHS_int=@(s)integral(fun2,0,s); eqn_LHS=(-(p-c)).*s+((p-h)).*LHS_int==RHS;sols=solve(eqn_LHS,s,'ReturnConditions',true);disp(sols)%This is the error I get.
Operator '.*' is not supported for operands of type 'function_handle'.
Best Answer