MATLAB: Finding arrays above threshold value

lengthMATLABstructuresthreshold

I have a struct AT.AX
AX has the following values:
1×370 double
1×1007 double
1×3957 double
1×6309 double
1×1648 double
1×2032 double
1×1173 double
1×16837 double
1×15977 double
1×267 double
Is there a way to find all the elements with length greater than 2000 and assign them to a new variable?
Thanks

Best Answer

Fake data:
AT(1).AX = rand(1,370);
AT(2).AX = rand(1,1007);
AT(3).AX = rand(1,3957);
AT(4).AX = rand(1,6309);
AT(5).AX = rand(1,1648);
AT(6).AX = rand(1,2032);
AT(7).AX = rand(1,1173);
AT(8).AX = rand(1,16837);
AT(9).AX = rand(1,15977);
AT(10).AX = rand(1,267);
And then simply:
L = cellfun('length',{AT.AX});
Z = AT(L>2000)