Borrar filtros
Borrar filtros

removing zeros from column

2 visualizaciones (últimos 30 días)
sermet
sermet el 4 de Ag. de 2015
Respondida: Al Dente el 4 de Ag. de 2015
A=[1;2;2;0;0;3;0;0];
%I need to remove all "0" in A matrix then I need to create a matrix without "0" like; [1;2;2;3]

Respuesta aceptada

Al Dente
Al Dente el 4 de Ag. de 2015
A(A==0) = []

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by