removing zeros from column

5 visualizzazioni (ultimi 30 giorni)
sermet
sermet il 4 Ago 2015
Risposto: Al Dente il 4 Ago 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]

Risposta accettata

Al Dente
Al Dente il 4 Ago 2015
A(A==0) = []

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by