Workaround for the expinv function in statistics toolbox

Hi,
I have been working with the norminv function for a while using my own code as follow:
function z = norminv(p,sigma,mu)
z = sigma.*(-sqrt(2)*erfcinv(2*p))+mu;
end
However, I would like now to use the expinv function but I don't have access to the statistics toolbox. I was wondering if there is a way to work around using that particular function ?
Thanks !

 Respuesta aceptada

Torsten
Torsten el 21 de Jun. de 2022
Editada: Torsten el 21 de Jun. de 2022
p = 0.3;
mu = 1/4;
x = -mu.*log(1-p)
x = 0.0892
x2 = expinv(p,mu)
x2 = 0.0892

Más respuestas (0)

Productos

Versión

R2022a

Preguntada:

el 21 de Jun. de 2022

Comentada:

el 21 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by