MATLAB: How to find the maximum length in a structure of vectors

arraycelllengthmaximumstructstructures

I have a struct, fem. One of its field is a cell (fem.Element) and I want to find the maximum length of fem.Element.
Thanks in advance, André

Best Answer

I solved using this: max(cellfun(@length,fem.Element);