MATLAB: Removing 0 from cellarray

cell arrays

a=[{'0'};{'0'};{'0'};{'b10'};{'01'};{'p10'}]; %cell

How can I remove all {'0'} from a array.
a_removed_zero=[{'b10'};{'01'};{'p10'}]; %cell

Best Answer

out = a(~strcmp(a,'0'))