Is has been a long time since I last use Matlab, I can't remember...
Though I think Matlab has no single dimension arrays anyway.

On Monday, January 27, 2014 6:44:09 AM UTC, John Myles White wrote:
>
> You’re right. That seems really odd to me. Is that how Matlab behaves?
>
>  — John
>
> On Jan 26, 2014, at 10:42 PM, Cristóvão Duarte Sousa 
> <[email protected]<javascript:>> 
> wrote:
>
> [1; 2; 3]
>
> gives Array{Int64,1} while I want Array{Int64,2}...
>
>
> On Mon, Jan 27, 2014 at 6:40 AM, John Myles White 
> <[email protected]<javascript:>
> > wrote:
>
>> [1; 2; 3]
>>
>> On Jan 26, 2014, at 10:39 PM, Cristóvão Duarte Sousa 
>> <[email protected]<javascript:>> 
>> wrote:
>>
>>
>>
>> Hi,
>>
>> What is the best way to write down a "single column matrix" literal?
>> For exampe, to obtain this:
>>     3x1 Array{Int64,2}:  # 2 dimensions
>>      1
>>      2
>>      3
>>
>> This
>>     [[1], [2], [3]]
>> doesn't work,
>> this
>>     [1, 2, 3]''
>> works but seems it can stop working in the future 
>> (#2686<https://github.com/JuliaLang/julia/issues/2686>
>> ),
>> and, finally, this
>>     [1 2 3]'
>> indeed does what I want.
>> However, is it the use of the transpose the only option?
>>
>> Thanks.
>>
>>
>>  
>
>

Reply via email to