s.a.b = 1;
c = fieldnames (s.a);
iscell (c) && strcmp (c{1}, "b")
