title: switch-case with multiple matches in matlab for code generation
body: <p>The following code is valid matlab sytax to check whether <code>b</code> matches any elements in <code>a</code>. However, if the code is used for code generation (i.e. simulink) then I get the error:   </p>
  
  <pre><code>'code generation only supports cell operations for varargin and varargout  
  </code></pre>
  
  <p>You can check this by adding <code>%#codegen</code> at the top of the script.)</p>
  
  <pre><code>a={2 3};
  b=3;
  switch b
      case a
          disp yay
      otherwise
          disp boo
  end
  </code></pre>
  
  <p>What should I do to match multiple patterns in a <code>case</code> statement in code-generation compatible code?</p>
  
  <p>The following don't work for me:</p>
  
  <pre><code>case a(1) || a(2) %//with a=[2, 3] above, since cells not allowed
  
  case a(:)
  </code></pre>