-
Notifications
You must be signed in to change notification settings - Fork 9
randn
Generates a matrix with normal distributed random values. In probability theory, the normal (or Gaussian) distribution is a continuous probability distribution, defined on the entire real line, that has a bell-shaped probability density function, known as the Gaussian function or informally as the bell curve.
Generates one normally (gaussian) distributed random value around 0 with standard deviation 1.
Returns 1. entry
Scalar
Generates a n-by-n matrix with normally (gaussian) distributed random value around 0 with standard deviation 1.
Argument dim
Scalar
Returns 1. entry
Matrix
randn(3)
Gives a 3x3 matrix with normally dist. rand. values.
Generates a m-by-n matrix with normally (gaussian) distributed random value around 0 with standard deviation 1.
Argument rows
Scalar
Argument cols
Scalar
Returns 1. entry
Matrix
randn(3, 1)
Gives a 3x1 matrix with normally dist. rand. values.
Generates a m-by-n matrix with normally (gaussian) distributed random value around mu with standard deviation sigma.
Argument rows
Scalar
Argument cols
Scalar
Argument mu
Scalar
Argument sigma
Scalar
Returns 1. entry
Matrix
randn(3, 1, 10, 2.5)
Gives a 3x1 matrix with normally dist. rand. values around 10 with standard deviation sigma.