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
Matlab does not know how to evaluate the combined logical expression
(0
Insted you should use:
for i=1:numel(m1) if (0
And to fasten it up probably something like this:
sum((0