Previous Up Next

6.45.12  Counting the elements of a matrix satisfying a property: count

The count applies a function to the elements of a matrix or list and adds the result. Hence, if the function is a boolean function, then count will count the number of elements satifying the property that the function tests for.


Examples.


Previous Up Next