[ones(5) 2*ones(5)]
5×2 Array{Float64,2}: 1.0 2.0 1.0 2.0 1.0 2.0 1.0 2.0 1.0 2.0
[ones(5), 2*ones(5)]
2-element Array{Array{Float64,1},1}: [1.0, 1.0, 1.0, 1.0, 1.0] [2.0, 2.0, 2.0, 2.0, 2.0]
[1 2 3]
1×3 Array{Int64,2}: 1 2 3
[1, 2, 3]
3-element Array{Int64,1}: 1 2 3
[1, 2, 3:5]
3-element Array{Any,1}: 1 2 3:5
x = ones(5); y = 2*ones(5)
5-element Array{Float64,1}: 2.0 2.0 2.0 2.0 2.0
[x y]
hcat(x,y)
cat(dims=2, x, y)
X = [1 2; 3 4]
2×2 Array{Int64,2}: 1 2 3 4
M = [true false; false true]
2×2 Array{Bool,2}: 1 0 0 1
X[M]
2-element Array{Int64,1}: 1 4
X .* M
2×2 Array{Int64,2}: 1 0 0 4