& does an element-wise logical and. Of course you need length(klient[:,2])==length(anothervector) for this to work:
klient[500 .< klient[:,2] .<= 100000 & anothervector.==0,:] (note the .==) On Wed, 2014-06-11 at 07:26, [email protected] wrote: > Is ok , big thx. > How to join another condition but another vector of the same lengths as > "client"? Prerequisite: anothervector = 0 > > julia> klient[ 500 .< klient[:,2] .<= 100000 anothervector=0,:] > ERROR: syntax: unexpected comma in matrix expression > > Paul > > > > W dniu wtorek, 10 czerwca 2014 20:50:03 UTC+2 użytkownik Andrea Pagnani > napisał: >> >> I think >> >> klient[ 500 .< klient[:,2] .<= 100000,:] >> >> should work >> >> Andrea >> >> On Tuesday, June 10, 2014 8:41:17 PM UTC+2, paul analyst wrote: >>> >>> How use two conditions to filtred array? >>> >>> Left and right side this code separatly are good. But how use booth >>> conditions in filter ? (take rows with <10000 and >500 in col 2) >>> >>> klient[klient[:,2].<=100000;:] & klient[klient[:,2].>500;:] >>> >>> Paul >>> >> --
