title: How do you assign random variables to elements in an array of a user specified size?
body: <p><a href="https://i.stack.imgur.com/rHV5K.png" rel="nofollow noreferrer">enter image description here</a>if i have a vector (n,1), where 'n' is a user specified number.</p>
  
  <p>how can i assign a variable to each element of the vector randomly or at least uniquely in a 'for' or 'while'loop using <strong>MATLAB</strong>.</p>
  
  <p>My aim is to give a symbolic answer to each of the variables in a system of linear equations which i have  used the 'MATLAB rref()' function to convert the equations into a solvable form.</p>
  
  <p>I know i have to do this in symbolic form.</p>
  
  <p>E.g n=10 variable vector (10,1), requires 10 unique variables which are selected by the computer.</p>
  
  <p>This question is also open to best alternatives!</p>
  
  <p>Thanks </p>