removing 0 from cellarray

1 vue (au cours des 30 derniers jours)
sermet
sermet le 18 Mai 2016
a=[{'0'};{'0'};{'0'};{'b10'};{'01'};{'p10'}]; %cell
How can I remove all {'0'} from a array.
a_removed_zero=[{'b10'};{'01'};{'p10'}]; %cell

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 18 Mai 2016
out = a(~strcmp(a,'0'))

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by