MATLAB: How to remove zero value in the column this is my data ,,, how can I delete the zero value 🙁 Best Answer Your_array_new = Your_array(all(Your_array ~= 0,2),:); Related SolutionsMATLAB: How to remove zero values from the followning label matrix?. If your matrix is A, thenA(A==0) = []will remove the zeros. But it will change the matrix into a vector.If you want to keep the matrix in the same shape, maybeA(A==0) = NaN MATLAB: Removing columns containing zeros m=m(:,any(m))Best wishesTorsten. Related QuestionNeed help. I have extract a specific column from file and it contains zeros. How to remove those zero so it can match the vector and can be plotted?Removing zeros from columnRemoving zero columns from matrix
Best Answer