a .< 5
On Aug 15, 2014, at 3:53 AM, David Higgins <[email protected]> wrote: > Hi, > > Is there a mechanism for vectorised logical access to array elements in > Julia? I basically mean, is there an equivalent to the Matlab notation > a[a<5] > which should give all of the elements of a[] which have value less than 5. > > I guess the feature I've not found is the ability to create the boolean index > vector 'a<5'. I'm doing it with loops at present. > > Thanks, > David. >
