title: List all environment variables in Matlab
body: <p>How does one get a list of all defined environment variables in Matlab? I'm aware of <code>getenv</code> but you have to provide a name, and <code>doc getenv</code> offers no help in how to use it to retrieve items in any other way. I can't find any other relevant information online. Is this even possible?</p>
  
  <p>I'm interested in a platform-independent answer (or at least Windows and Linux).</p>