how delete empty fields in a struct

 Risposta accettata

Andrei Bobrov
Andrei Bobrov il 11 Mag 2016
Modificato: Andrei Bobrov il 11 Mag 2016
out = {t(~cellfun(@isempty,{t.places})).places};
t = cell2struct(out,{'places'},1);
or jast
t = t(~cellfun(@isempty,{t.places}));

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by