title: MATLAB: Java String[] conversion
body: <p>I'm quite new to MATLAB programming and I ran into some trouble:</p>
  
  <p>I want to call a dSPACE MLIB libriary function. According to their samples, it requires a string array as argument:</p>
  
  <pre><code>variables = {'Model Root/Spring-Mass-Damper System/Out1';...
           'Model Root/Signal\nGenerator/Out1'};
  
  libFunction(variables);
  </code></pre>
  
  <p>This variables is passed to the function. My problem is now: I have a frontend application where the user can choose from an arbitary number of strings which should be passed to the matlab function. Since the frontend is writtten in Java, the type of the incoming data is java.lang.String[]. 
  How can I convert an array of java strings to something with the same type as the sample variable above (I think it is a cell array of cell arrays or sth like that).</p>
  
  <p>Thanks in advance!</p>