The following will work but is not as efficient as knowing the size of the 
matrix ahead of time and pre-allocating the matrix:

rows = Matrix{Float64}[]
while length(rows) < 100
    push!(rows, rand(1,10))
end
matrix = vcat(rows...)

On Tuesday, May 27, 2014 7:26:48 AM UTC-7, Miri Or wrote:

Hi
> I need to write a program in julia language. I have to define a *matrix *with 
> four columns and  i need to add to that rows during the program 
> execution, that means in a *dynamically *way. 
> *matrix[n][4]*, and i do not know the number of lines in the matrix at 
> the beginning of the program.
>  
> It is very urgent, hope you help me quickly
> Thank you!
>

Reply via email to