suppose this the output c=[0 0 0 0; 0 0 0 0; 1 1 1 1] now how could i delete the other zeros for a looop and only print the last row??

# MATLAB: How to delete the rest of the zeros from a matrix

cluster

###### Related Question

- Replace elements of a cell
- Removing empty cell in array
- Adding certain ‘parts’ of two matrices
- I want to find row indices for each column having non zero values
- Matrix indexing using a vector
- Signal in and signal out need to be shifted to match one another…
- Concatenating the several matrices in a certain manner
- Filling missing elements in a matrix.
- How to obtain all possible combinations of a given vector
- I have a matrix like [1 0 0 1 0 1 0 ; 0 1 0 1 0 0 ; 1 0 0 1 1 1]. there are 3 rows and 7 column i wanna to see in the format like

## Best Answer