I have a large matrix, m, and am trying to count the number of a specific value (i.e. How many indexes are of the value 4?)
I tried using
but I end up with val being a matrix/vector of numbers. I assume these numbers are from each column and should be added together for the total, so I tried another
but then I just end up with another vector/matrix.
How can I do it?
0 件のコメント
サインインしてコメントする。