I have matrix A which is 1x276 and B which is 1x503305. I want to count how many values from B are greater or equal to each value of A. How would I do this?
Arrayfun is basically a nicer way to loop over the elements of an array. Note that it is oftenslower than looping, so if you have very large data sets you may want to loop instead.