I usually type, for example, 
[1 2 3]'




On Wednesday, March 4, 2015 at 5:54:27 AM UTC-5, Tamas Papp wrote:
>
> 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 <[email protected] <javascript:>> 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 <[email protected] <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) 
> >> 
> >> 
>
>

Reply via email to