julia> find( a .> 5 )

cheers,

Cameron


On Sat, Jul 12, 2014 at 11:40 AM, paul analyst <paul.anal...@mail.com>
wrote:

> I need all indexes where a[:] >5
>
> julia> a=rand(10)*10
> 10-element Array{Float64,1}:
>  4.84005
>  8.29994
>  8.8531
>  3.42319
>  2.60318
>  7.25313
>  0.816263
>  4.44463
>  6.71836
>  4.65337
>
> julia> a.>5
> 10-element BitArray{1}:
>  false
>   true
>   true
>  false
>  false
>   true
>  false
>  false
>   true
>  false
>
> julia> find(a.>5,a)
> ERROR: no method find(BitArray{1}, Array{Float64,1})
>
> julia> find([a.>5],a)
> ERROR: no method find(BitArray{1}, Array{Float64,1})
>
> julia>
>
>

Reply via email to