I have a huge vector. I have to count values falling within certain ranges. the ranges are like 0-10, 10-20 etc. I have to count the number of values which fall in certain rang
You can do something like this (also works for non integers)
k = sum(m1>0 & m1<=10)