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

1 visualizzazione (ultimi 30 giorni)
function[OHF]=OHF(x,b,mu,eta)
syms x
OHF=x^(mu-1)*(x+b+sqrt(x^(2)+2*b*x))^(-eta);
end

Risposte (1)

KSSV
KSSV il 16 Set 2022
Modificato: KSSV il 16 Set 2022
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

Community Treasure Hunt

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

Start Hunting!

Translated by