syms x >> int(OHF(x,0,0,0),x,0,2) getting error msg " Undefined function 'OHF' for input arguments of type 'sym'".

Answers (1)

x = OHF(rand,rand,rand)
function out =OHF(b,mu,eta)
syms x
out=x^(mu-1)*(x+b+sqrt(x^(2)+2*b*x))^(-eta);
end
OR
x = OHF(rand,rand,rand,rand)
function out = OHF(x,b,mu,eta)
out=x^(mu-1)*(x+b+sqrt(x^(2)+2*b*x))^(-eta);
end

Categories

Asked:

on 16 Sep 2022

Edited:

on 16 Sep 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!