norminv to solve for sigma

How can i use norminv to solve for sigma? I have a problem where i have the x value, the mu value and the p value but i need to solve for sigma in MATLAB

Réponses (1)

Torsten
Torsten le 24 Jan 2019

1 vote

x = ...;
mu = ...;
p = ...;
sigma0 = 1.0;
sigma = fzero(@(y)normcdf(x,mu,y)-p,sigma0)

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by