From help-request at octave dot org Thu Jan 27 05:43:18 2005 Subject: multiple find From: Claudio Belotti To: help at octave dot org Date: Thu, 27 Jan 2005 12:44:47 +0100 dear all, which is the most efficient way to divide a (long) vector in ranges? I can't think of nothing better than: ranges = [ 5.5 7.5 7.5 10.5 ... ... 50.5 56 56 64 64 72 ] for ii = 1:rows(ranges) w = find( v>=ranges(ii,1) & v