How to delete a row of matrix in julia

前端 未结 3 1861
抹茶落季
抹茶落季 2021-01-04 04:47

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,:

3条回答
  •  被撕碎了的回忆
    2021-01-04 05:44

    I think this is the shortest answer A[1:size(A,1) .!= 2,: ]

    https://groups.google.com/forum/#!topic/julia-dev/goVB9Pp74H4

提交回复
热议问题