In matlab, deleting the 2nd row of matrix A is
A(2,:) = [];
How to delete a row of matrix in julia? I tried to use A(2,:
You can't delete a row from a matrix – the fact that Matlab has easy syntax for this is a bit of a trap because the actual way you have to delete a row is to create a copy without the row so we decided to make that explicit and thereby have more transparent performance characteristics. You can change the size of 1-dimensional arrays, e.g. doing push!(v,x) and pop!(v).