title: Matlab- How does you name a new variable based on other variables' values?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/2809635/how-to-concatenate-a-number-to-a-variable-name-in-matlab">How to concatenate a number to a variable name in MATLAB?</a><br>
    <a href="https://stackoverflow.com/questions/3346178/matlab-how-can-i-use-a-variables-value-in-another-variables-name">MATLAB: How can I use a variables value in another variables name?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to name a variable using values of other variables given in a function.
  So, if I have values for an x1,x2 I can make the new variable's name as:</p>
  
  <p>x_(x1's value)_(x2's value) as a name.</p>
  
  <p>I've checked out the eval, num2str, strcat functions, but as of yet I can't make it so that I have a variable with the name above which I can assign a value to.</p>
  
  <p>Any help would be greatly appreciated.</p>