title: What is the neatest way of passing flags to a Matlab function?
body: <p>I'm designing a function that takes as argument one structure and any number of flags. The function will contain a couple of <code>if</code>s checking whether a specific flag is set.</p>
  
  <p>What is the neatest way to achieve this? I was thinking about passing the flags as separate string arguments. Is there a neater solution?</p>