powered by
Calculate the mean of all strictly positive values.
meanPositiveValues(x)
The average of all the positive values. Returns NaN is no strictly positive values are found.
NaN
A vector of values.
meanPositiveValues(-10:10)
Run the code above in your browser using DataLab