removing 0 from cellarray

1 次查看(过去 30 天)
a=[{'0'};{'0'};{'0'};{'b10'};{'01'};{'p10'}]; %cell
How can I remove all {'0'} from a array.
a_removed_zero=[{'b10'};{'01'};{'p10'}]; %cell

采纳的回答

Andrei Bobrov
Andrei Bobrov 2016-5-18
out = a(~strcmp(a,'0'))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by