MATLAB: Row elimination problem.

for loophomeworkif statementMATLAB

Hey
I have a matrix A of 34×2 double.
I want to eliminate the rows wherein the value of both the columns is 0.

Best Answer

A(all(A == 0, 2), :) = [ ]
Related Question