This is a UnitRange, which is immutable, it is not an ordinary Vector. Even after transposing, it’s still immutable. If you want to change an element, you must turn it into a Vector first:
A = collect(1:9)
A[3] = 5 #ok
This is a UnitRange, which is immutable, it is not an ordinary Vector. Even after transposing, it’s still immutable. If you want to change an element, you must turn it into a Vector first:
A = collect(1:9)
A[3] = 5 #ok