MATLAB: How many minimums in each column in a matrix

MATLABmatrix arraymatrix manipulation

In this example, A B C D E F are each 1×100 matrices with arbitrary values.
G is a 6×100 matrix, where
G=[A;B;C;D;E;F]
and H is another 1×100 matrix that notes the minimum of each column
H=min(G)
I'm trying to create a new 1×100 matrix I, which lists how many values in each column of G are equal to the minimum of that same column. How could I create such a matrix?
Thank you in advance for all help.

Best Answer

Try this:
minCounts = sum(G == repmat(H, [6, 1]))