How to key-in vertical matrices?

A horizontal matrix can be keyed-in like this:
[1 2 3]

A rectangular matrix can be keyed-in like this: (“;” denotes new row)
[1 2 3 ; 4 5 6]

I was expecting a vertical matrix to be keyed in like this:
[1; 2; 3]

However, in the latter case, instead of a Matrix I get a Vector. Does it make any sense?

Captura

What can I do to get a Matrix as the result?

Repeated semicolons can be used to add extra dimensions or to concatenate in arbitrary dimensions.

julia> [1; 2; 3;;]
3×1 Matrix{Int64}:
 1
 2
 3

julia> [1; 4;; 2; 5;; 3; 6]
2×3 Matrix{Int64}:
 1  2  3
 4  5  6
2 Likes

excellent, this is exactly what I needed !!!