Question: How to count the specified item in first column of matrix by using z(1,:)

x := 1;y := 3;a := [1,2,3,4,5,6,7,8,9,10];z := Matrix([seq([seq(a[k], k = x+m .. y+m)], m = 0 .. 2)]);ListTools:-Occurrences(1, Vector(z(.., 1)));

Please Wait...