Q:

pushing elements to an array of matrices

suppose you want to have a array of matrices and iterate in
a for-loop and add in every loop a matrix to the array, afaik you could do it like this in julia:
V = Array{Array{Float64,2},1}  
for i=1:nlevels
    img = imgread("/path/img.png")
    push!(V, img) # append!(img) doesn't work too 
end

MethodError: no method matching append!(::Type{Array{Array{Float64,2},1}}, ::Array{Float64,2})
Closest candidates are:
  append!(!Matched::Array{T,1}, ::Any) at collections.jl:21
  append!(!Matched::CatIndices.BidirectionalVector{T}, ::Any) at ...

i get this error!
what am i doing wrong here!
How is there right way to achieve this in julia?

A:

A () is what you missed!
Have a look
julia> V = Array{Array{Float64,2},1}
Array{Array{Float64,2},1}

julia> typeof(V)
DataType

julia> V = Array{Array{Float64,2},1}()
0-element Array{Array{Float64,2},1}

julia> typeof(V)
Array{Array{Float64,2},1}

