Previous Up Next

14.3.13  Counting elements equal to a given value

The count_eq command counts the number of elements in a matrix which are equal to a given value.

Example

count_eq(12,[[2,12,45],[3,7,78]])
     
1           

Previous Up Next