MATLAB: How to delete the columns in a structure array

how to delete the columns in a structure array

Hi.
I have a structure array HT (1 x 50000) with 20 fields. I want to delete the columns whose size is less than 10.

Best Answer

A similar question was asked by me in the past.
HT(any(cellfun(@numel,struct2cell(HT)) < 10)) = []