Surely I am missing something, but how would this relate to concatenation? Even if the concatenation syntax can be applied with some hack (eg [1:3;]'' in current v0.4), I think that reshape conveys the intention much better.
Best, Tamas On Wed, Mar 04 2015, Jutho <juthohaege...@gmail.com> wrote: > But feel free to discuss the need for a convenient syntax for this > at https://github.com/JuliaLang/julia/issues/10338 > > Op woensdag 4 maart 2015 10:32:12 UTC+1 schreef Tamas Papp: >> >> Assuming that you want to fill it with a sequence of integers as your >> examples suggest, something like >> >> [i for i=1:3, j=1] >> >> or >> >> reshape(1:3,3,1) >> >> would also work. >> >> Best, >> >> Tamas >> >> On Wed, Mar 04 2015, Deniz Yuret <deniz...@gmail.com <javascript:>> >> wrote: >> >> > Is there a way to initialize a 2D column matrix? >> > a=[1,2,3] gives me a 1D vector with size=(3,) >> > a=[1;2;3] likewise >> > a=[1 2 3] gives me a row matrix with size=(1,3) >> > >> > How do I initialize a column matrix with size=(3,1)? (other than >> > transposing a row matrix) >> >>