title: Create variables with names from strings
body: <p>Let's assume that I want to create 10 variables which would look like this:</p>
  
  <pre><code>x1 = 1;
  x2 = 2;
  x3 = 3;
  x4 = 4;
  .
  .
  xi = i;
  </code></pre>
  
  <p>This is a simplified version of what I'm intending to do. Basically I just want so save code lines by creating these variables in an automated way. Is there the possibility to construct a variable name in Matlab? The pattern in my example would be <code>["x", num2str(i)]</code>. But I cant find a way to create a variable with that name. </p>