MATLAB: Quick overview over a variable (e.g. struct)

MATLAB

Hello all, unfortunatly I have not found a answer to this question. I have a large object, stored as 'struct'. What I need is a quick overview over all the fields of the struct. I do not need to see the values which are stored in those fields. E.g.: The struct is
S.a=...
S.b=...
S.c=...
...
I want to have this answer:
ans = S.a, S.b, S.c
or even this:
ans = a, b, c
Thank you very much for your help !

Best Answer

Simply call fieldnames:
fieldnames(S)