title: Contents of a subfield
body: <p>I need to obtain a list (cell array) of the contents of a single subfield in a PDB file. I have prepared my structure and am now looking for something like</p>
  
  <pre><code>resnames = getfield(PS.Model.Atom,'resName')
  </code></pre>
  
  <p>This however only leaves me with the first entry. I need an output similar to the <code>what</code> command.</p>