Owning Class: statistics
Requires: MathScript RT Module
c = mean(a)
c = mean(a, b)
Computes the mean value.
| Name | Description | ||||
|---|---|---|---|---|---|
| a | Specifies a vector or matrix. | ||||
| b | Specifies the dimension of a across which to compute the mean if a is a matrix. b is a scalar that accepts the following values.
|
| Name | Description |
|---|---|
| c | Returns the mean of a. If a is a vector, c returns the mean value of all elements in a. If a is a matrix, c returns a vector of the means of each of the rows or columns in a, depending on the value of b. c is a scalar or vector. |
A = [1:1:15]
C = mean(A)