MATLAB: How to concatenate cell array with blank

cellcell arraycell arraysconcatenation

Hi, can anyone help me in concatenating below cell array
{'ob' '^b' [] '$b'}
so that output will be
{'ob' '^b' '$b'}
this is an dynamic output so i could not identify the exact position of blank. Is there any simple method available otherwise i have to use a loop to identify the blank.

Best Answer

cs = {'ob' '^b' [] '$b'};
idx = cellfun('isempty',cs);
cs = cs(~idx);