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.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.