To get a two-dimensional output array (i.e., row vector), you can use a non-scalar indexing expression such as t1[[1],:] or t1[1:1,:].
You probably knew this already, but just making a note for any others reading who might not. On Wednesday, February 17, 2016 at 10:51:04 AM UTC-5, J Luis wrote: Ok, thanks. Surprising for Matlab users but ok. > > quarta-feira, 17 de Fevereiro de 2016 às 15:30:54 UTC, Yichao Yu escreveu: >> >> On Wed, Feb 17, 2016 at 10:22 AM, J Luis <jmf...@gmail.com> wrote: >> > Hi, see >> > >> > function ttt() >> > t1 = [-1167.3955469319576 9.9]; >> > t2 = [-1170.4689400259758 -15.31]; >> > t = [t1[1,:]; t2[1,:]] >> > @show(t1,t2,t) >> > end >> > >> > prints on 0.4 >> > >> > t1 = [-1167.3955469319576 9.9] >> > t2 = [-1170.4689400259758 -15.31] >> > t = [-1167.3955469319576 9.9 >> > -1170.4689400259758 -15.31] >> > 2x2 Array{Float64,2}: >> > -1167.4 9.9 >> > -1170.47 -15.31 >> > >> > but on 0.5 (built yesterday) >> > >> > t1 = [-1167.3955469319576 9.9] >> > t2 = [-1170.4689400259758 -15.31] >> > t = [-1167.3955469319576,9.9,-1170.4689400259758,-15.31] >> > 4-element Array{Float64,1}: >> > -1167.4 >> > 9.9 >> > -1170.47 >> > -15.31 >> >> IIUC this is an intentional change >> https://github.com/JuliaLang/julia/pull/13612. >> >> An easy way to fix the compatibility on 0.4 and 0.5 is to use 1:1 instead >> of 1. >> >