julia> a=[1 2; 3 4; 5 6]
3x2 Array{Int64,2}:
 1  2
 3  4
 5  6

julia> b=reshape(a, prod(size(a)));

julia> b[3]=0
0

julia> a
3x2 Array{Int64,2}:
 1  2
 3  4
 0  6

Reply via email to