I am trying to find the cumulative distribution function of the standard normal. I have the value that I will be using the cdf to analyze but cannot figure out the functions to go with it. Can anyone help me find the correct functions/code?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Below is the code I attempted to run..but it isn't recognizing the makedist function.
x = 0.24 mu = 0 sigma = 1
pd = makedist('Normal')
y = cdf(pd,x)
0 commentaires
Réponse acceptée
Roger Stafford
le 7 Août 2013
Use matlab's 'erfc' function in place of 'normcdf' if you don't have the Statistics Toolbox according to the formula:
normcdf(x) = 1/2*erfc(-x/sqrt(2))
Plus de réponses (1)
dpb
le 7 Août 2013
Seems makedist is new after R2012b 'cuz it ain't here at the release.
Use
normcdf() % and friends
instead
2 commentaires
dpb
le 7 Août 2013
Apparently you don't have the Statistics Toolbox installed (or installed correctly, anyway).
What does
ver
return? Will list installed toolboxen and versions.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!