OK, this is how I finally solved it :
I initiated two arrays (thanks DNF for pointing out the right constructor syntax):
julia> epoch_state = Array{Array{Float64,1},1}[]
0-element Array{Array{Array{Float64,1},1},1}
julia> states= Array{Float64, 1}[]
0-element Array{Array{Float64,1},1}
One key point here is that figured our the type of epoch_state by pasting a result of epoch_state in REPL and applying typeof(), which gives me Array{Array{Float64,1},1}
Looking at the result of epoch_state in the first iteration (I use a ode45 diff eqn solver for a system of 10 equations) of my code I get
julia> epoch_state
2-element Array{Array{Float64,1},1}:
[81.4278,69.4027,7.63996,6.37862e6,626.135,427.494,0.919534,0.31121,-0.0933081,-0.221133]
[81.6179,69.2823,7.48541,6.37862e6,627.522,427.645,0.919534,0.31121,-0.0933081,-0.221133]
julia> typeof(epoch_state)
Array{Array{Float64,1},1}
Then I want to store the second element (an array) of epoch_state in states, continue to the next iteration of epoch_state and again store the second element of epoch_state in states, and so on until my simulation finish.
So I push!() epoch_state[2] to states (here for illustration the same second element several times)
julia> push!(states, epoch_state[2])
1-element Array{Array{Float64,1},1}:
[81.6179,69.2823,7.48541,6.37862e6,627.522,427.645,0.919534,0.31121,-0.0933081,-0.221133]
julia> push!(states, epoch_state[2])
2-element Array{Array{Float64,1},1}:
[81.6179,69.2823,7.48541,6.37862e6,627.522,427.645,0.919534,0.31121,-0.0933081,-0.221133]
[81.6179,69.2823,7.48541,6.37862e6,627.522,427.645,0.919534,0.31121,-0.0933081,-0.221133]
julia> push!(states, epoch_state[2])
3-element Array{Array{Float64,1},1}:
[81.6179,69.2823,7.48541,6.37862e6,627.522,427.645,0.919534,0.31121,-0.0933081,-0.221133]
[81.6179,69.2823,7.48541,6.37862e6,627.522,427.645,0.919534,0.31121,-0.0933081,-0.221133]
[81.6179,69.2823,7.48541,6.37862e6,627.522,427.645,0.919534,0.31121,-0.0933081,-0.221133]
So I finally got it working.
Final note:
What I find confusing is that epoch_state and states have exactly the same type
julia> typeof(epoch_state)
Array{Array{Float64,1},1}
julia> typeof(states)
Array{Array{Float64,1},1}
But if I construct epoch_state and states with the same type specification
``
epoch_state = Array{Array{Float64,1},1}
states = Array{Array{Float64,1},1}
I get the exectution error
`ERROR: LoadError: MethodError: Cannot `convert` an object of type Float64 to an object of type Array{Float64,1}`
when I come to
`push!(states, epoch_state[2])`
States must be constructed as
`states= Array{Float64, 1}[]`
Strange.....