syms x >> int(OHF(x,0,0,0),x,0,2) getting error msg " Undefined function 'OHF' for input arguments of type 'sym'".
Show older comments
function[OHF]=OHF(x,b,mu,eta)
syms x
OHF=x^(mu-1)*(x+b+sqrt(x^(2)+2*b*x))^(-eta);
end
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
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!