Try:

julia> a = [0, 1, 0, 0, 1, 0, 2, 0, 0, 0]
10-element Array{Int64,1}:
 0
 1
 0
 0
 1
 0
 2
 0
 0
 0

julia> find(a .> 1)
1-element Array{Int64,1}:
 7

On Wednesday, March 2, 2016 at 9:03:00 AM UTC-5, paul analyst wrote:
>
> I heve vecotr a
> julia> a
> 10-element Array{Int64,1}:
>  0
>  1
>  0
>  0
>  1
>  0
>  2
>  0
>  0
>  0
>
> How to find indexes for a .>1
>
> findin(a,[.>1])
> 2-element Array{Int64,1}:
>  2
>  5
> is not true, i need ansewr 7 
> Paul
>

Reply via email to