title: Converting a matrix created with MATLAB to Numpy array with a similar syntax
body: <p>I'm playing with the code snippets of the course I'm taking which is originally written in MATLAB. I use Python and convert these matrices to Python for the toy examples. For example, for the following MATLAB matrix:</p>
  
  <pre><code>s = [2 3; 4 5];
  </code></pre>
  
  <p>I use</p>
  
  <pre><code>s = array([[2,3],[4,5]])
  </code></pre>
  
  <p>It is too time consuming for me to re-write all the toy examples this way because I just want to see how they work. Is there a way to directly give the MATLAB matrix as string to a Numpy array or a better alternative for this?</p>
  
  <p>For example, something like:</p>
  
  <pre><code>s = myMagicalM2ArrayFunction('[2 3; 4 5]')
  </code></pre>