如何在Julia中向矩阵添加行?
例如,
mat = [1 2 3; 3 4 2]
我想x = [4 2 1]在最后添加行.我试过了:
x = [4 2 1]
push!(mat, x)
但它给出了一个错误.
julia
julia ×1