You can't use push! on multidimentional arrays. You can push onto a 1d 
array, and then reshape. Another way is to collect all the row/column 
vectors and use hcat(c...) or vcat(c...) to create an array.

Ivar

kl. 21:22:01 UTC+2 onsdag 23. juli 2014 skrev john pollack følgende:
>
> Hi. I want to create a 2-column array.It should be empty at first, then I 
> should be able to add rows to it. I was able to do this by : 
>
> A = Array(Float64,(0,2)) 
>
> A = vcat(A , [ 1 2 ] ) 
>
> However, I couldn't use push! function for this. Is it possible to use 
> push! function for this aim, and are there any substantial performance 
> differences between push! and vcat functions  ?
> Thanks for any help.
>

Reply via email to