Probablity distribution calculation for a vector
Mostra commenti meno recenti
I want to use the following function Y = normpdf(X,mu,sigma)
X is a vector of 100*1 for each X I have a mu and a sigma , do you know how to do that ?
Risposte (1)
Roger Stafford
il 21 Ago 2014
From the documentation for normpdf at
http://www.mathworks.com/help/stats/normpdf.html
"Y = normpdf(X,mu,sigma) computes the pdf at each of the values in X using the normal distribution with mean mu and standard deviation sigma. X, mu, and sigma can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input is expanded to a constant array with the same dimensions as the other inputs. The parameters in sigma must be positive."
That should answer your question.
1 Commento
Niki
il 21 Ago 2014
Categorie
Scopri di più su Probability Density Functions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!